-
Notifications
You must be signed in to change notification settings - Fork 19
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
New Combo component for combo charts #364
Comments
Since we want the axes to behave differently for |
We should be able to make it work while keeping Please feel free to reach out if you're unsure on how to proceed with it. We'll be happy to help out. |
Thanks @c-lamoureux, that makes sense. I'm going through the code and contribution docs right now. I'll reach out when required. Btw |
@pratyushbanerjee great call out about the |
Provide a general summary of the feature here
Combo charts are useful for displaying multiple types of data in the same visualization that you want to compare against each other.
Combo charts often have some unique edge cases like dual metric axes. They also need to share the same dimension axis. Combo charts also have unique highlight/hover behavior to consider.
A new component should be created that will wrap the combo chart types the user wants and handle these edge cases without any special configuration from the user.
To begin with, only a single bar and line combo will be supported.
🤔 Expected Behavior?
Dual axes should be possible
Should be possible to hover each bar and point on the line
Dimension axes should line up correctly across line and bar
💁 Possible Solution
API
Need to add
name
to theAxis
component and be able to use that to correlate which mark uses which axis.name
can default to the value ofposition
.Bar needs
metricAxis
added to it which will allow the bar metric to be connected to the correct axis. If undefined, the typical metric scale should be used.New
Combo
component.Should have a
dimension
prop which sets the dimension of theBar
andLine
. If a dimension is set on eitherBar
orLine
, this will override those values. Should default to something likedatetime
.ChartTooltip
needs a newhighlightBy
prop which will allow the user to configure the hover targets. Value of this prop can be'item' | 'dimension' | 'series'
. We also want to be able to set some kind of group to highlight by but that can be handled in a separate ticket.If
ChartTooltip
is nested under aCombo
(child or grandchild) then for a line, this should use a hover area near the points on the line instead ofvoronoi
. Ifvoronoi
is used then none of the bars are accessible.🔦 Context
Combo charts are useful for displaying multiple types of data in the same visualization that you want to compare against each other.
💻 Examples
No response
🧢 Your Company/Team
Adobe
The text was updated successfully, but these errors were encountered: