-
-
Notifications
You must be signed in to change notification settings - Fork 111
Funnel support #934
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
Funnel support #934
Conversation
"data": [ | ||
{ | ||
"type": "funnel", | ||
"y": ["Lead", "Pipeline", "Proposal", "Negotiation", "Closed (Won)"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a general, more plot.js type question. Why are the axes for funnel (x/y) and funnelarea (labels/values), why couldn't they both have been named (labels/values) ? I feel like that would have been easier understand for a business type chart.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this is because funnel
is based on bar
and is on cartesian axes, but funnelarea
is based on pie
and has no axes or orientation.
['pie', 'table', 'sunburst', 'sankey', 'parcoords', 'parcats'].includes(d.type) | ||
['pie', 'table', 'sunburst', 'sankey', 'parcoords', 'parcats', 'funnelarea'].includes( | ||
d.type | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the legend is merged, not overlapping, just like with a multi-pie scenario.
} else if (traceType === 'sunburst') { | ||
this.name = _('Sunburst Segments'); | ||
} else if (['funnelarea', 'pie', 'sunburst'].includes(traceType)) { | ||
this.name = _('Segments'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
line: {color: COLORS.blueTeal}, | ||
fillcolor: 'rgba(23, 190, 207, 0.5)', | ||
}, | ||
orientation: 'v', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, I was asked for those colors previously.. but if we don't need them anymore ok..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I don't think it makes sense personally.
well, overall, this looks good to me 💃 |
Outstanding: