Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mdims: Make it possible to embed single mdim chart views in articles #4012

Open
Tracked by #4007
danyx23 opened this issue Oct 4, 2024 · 1 comment
Open
Tracked by #4007
Assignees
Labels

Comments

@danyx23
Copy link
Contributor

danyx23 commented Oct 4, 2024

Motivation

One of the reasons why we wanted MDims was to have less of a need for many standalone charts (i.e. those that you see in the admin in the charts section and that live in the charts table in the DB). Instead of having 20 standalone charts you would now have one Mdim with 20 views.

This works fine today for standalone MDims, but our authors want to be able to embed charts in articles and so they will want to embed views from MDims in charts.

Eventually we will want to be able to embed single views as iFrames and probably also the entire mdim chart + mdim controls in iFrames, but for now we only want to make it possible to embed single views in articles (or other gdoc content).

Either the chart gdoc component or a new, similar component should take the url (including the query params to select the right view) as a parameter and then render the correct interactive chart that would also be shown in the mdim page (just the chart, none of the surrounding metadata).

@danyx23 danyx23 changed the title Make it possible to embed single mdim chart views in articles (i.e. in a gdoc reference an mdim by url with the query params and it will show this view without any controls, just the chart) MDims: Make it possible to embed single mdim chart views in articles Oct 4, 2024
@danyx23 danyx23 changed the title MDims: Make it possible to embed single mdim chart views in articles Mdims: Make it possible to embed single mdim chart views in articles Oct 4, 2024
@danyx23 danyx23 added site and removed needs triage labels Oct 4, 2024
@rakyi
Copy link
Contributor

rakyi commented Oct 14, 2024

Relates to #4013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants