You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, maidr only support single-panel plot, which means a figure object contains only one panel. This feature request is to support multi-panel plot, which means a figure object can contain multiple panels (i.e., sub-plots). This feature is useful when we want to compare multiple plots side by side.
Motivation
Facetting and sub-plotting are common techniques in data visualization. They are useful for comparing multiple plots side by side. Python matplotlib and R ggplot2 packages support multi-panel plot. Our target users will encounter situations where they need to compare multiple plots side by side. Therefore, it is necessary to support multi-panel plot in maidr.
Proposed Solution
To facilitate our discussion, I have pushed example multi-panel SVG as well as its corresponding JSON schema.
My proposed user interaction with this multi-panel plot is as follows:
Just like other single-panel plots, users Tab to focus in the parent figure area which contains all the sub-plots
Notes: Multi-panel object needs to contain aria-label to indicate the number of sub-plots it contains. For example,
This figure contains 12 sub-plots in a 3 by 2 grid layout. The title of the figure is "Penguin Bill Dimensions by Species and Sex". Use Arrow keys to navigate the sub-plots and press Enter to focus on a sub-plot.
When the multi-panel figure gets focused, users can navigate the figure grid layout via Arrow keys. The figure grid is a 2D grid where each cell contains a sub-plot. The grid layout follows the rows and columns structure specified in its JSON schema
Note: Each panel (i.e., sub-plot) outline should be visually highlighted when it is focused. The sub-plot outline is a rectangle that surrounds the sub-plot.
Users can hit Enter to focus on a sub-plot. When a sub-plot is focused, users can interact with the sub-plot as if it is a single-panel plot where arrow keys are used to navigate data points.
Users can hit Escape to go back to the parent figure area.
Additional Context
N/A
Checklist
I have searched for similar feature requests and confirmed that this is a new request.
I have provided a clear and concise description of the feature.
I have explained the motivation behind this feature request.
I have outlined a proposed solution or ideas for implementing this feature.
I have provided any additional context or screenshots if applicable.
The text was updated successfully, but these errors were encountered:
Professor @jooyoungseo , we need a clear distinction of the following terms,
Facet
Panel
Plot
Sub-plot
Layer
And I believe we need to have a common discussion regarding the JSON structure because,
to reduce the complexity and redundancy of the structure. For example, like axes, x, label, are specified for both panels, as well as in the root level, which is confusing.
and selectors won't be simple moving forward. One of the major issues faced is using a single selector for highlighting, even for a single layer graph. For example, python's version of Box plot is complicated enough to be represented in a single selector. We might have to introduce several selectors, even to differentiate the components of the BoxPlot. We have to device the structure based on this as well.
the internal structure used by Matplotlib, Seaborn, Plotly, ggplot2 are different, and our structure has to incorporate all.
Feature Request
Description
Currently, maidr only support single-panel plot, which means a figure object contains only one panel. This feature request is to support multi-panel plot, which means a figure object can contain multiple panels (i.e., sub-plots). This feature is useful when we want to compare multiple plots side by side.
Motivation
Facetting and sub-plotting are common techniques in data visualization. They are useful for comparing multiple plots side by side. Python matplotlib and R ggplot2 packages support multi-panel plot. Our target users will encounter situations where they need to compare multiple plots side by side. Therefore, it is necessary to support multi-panel plot in maidr.
Proposed Solution
To facilitate our discussion, I have pushed example multi-panel SVG as well as its corresponding JSON schema.
Multi-panel SVG: https://github.com/xability/maidr/blob/a34e8ec4b00d5274e45ca4ac8b95db144755ae2d/examples/multi-panel/multi_panel.svg
Its JSON schema: https://github.com/xability/maidr/blob/a34e8ec4b00d5274e45ca4ac8b95db144755ae2d/examples/multi-panel/multi_panel_schema.json
My proposed user interaction with this multi-panel plot is as follows:
aria-label
to indicate the number of sub-plots it contains. For example,rows
andcolumns
structure specified in its JSON schemaUsers can hit Enter to focus on a sub-plot. When a sub-plot is focused, users can interact with the sub-plot as if it is a single-panel plot where arrow keys are used to navigate data points.
Users can hit Escape to go back to the parent figure area.
Additional Context
N/A
Checklist
The text was updated successfully, but these errors were encountered: