Skip to content

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

Merged
merged 4 commits into from
Jun 13, 2019
Merged

Funnel support #934

merged 4 commits into from
Jun 13, 2019

Conversation

nicolaskruchten
Copy link
Contributor

@nicolaskruchten nicolaskruchten commented Jun 11, 2019

Outstanding:

  • y autorange for horizontal funnels
  • barmode
  • class as function
  • hover/textinfo on funnel
  • Percy

@nicolaskruchten nicolaskruchten requested a review from VeraZab June 12, 2019 02:50
"data": [
{
"type": "funnel",
"y": ["Lead", "Pipeline", "Proposal", "Negotiation", "Closed (Won)"],
Copy link
Contributor

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.

Copy link
Contributor Author

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
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's nice that we can make subplots with funnelarea, but the legends will overlap, unless there's a control i've missed for that?
Screen Shot 2019-06-13 at 10 51 20 AM

Copy link
Contributor Author

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');
Copy link
Contributor

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',
Copy link
Contributor

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..

Copy link
Contributor Author

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.

@VeraZab
Copy link
Contributor

VeraZab commented Jun 13, 2019

well, overall, this looks good to me 💃

@nicolaskruchten nicolaskruchten merged commit c7a4fc2 into master Jun 13, 2019
@nicolaskruchten nicolaskruchten deleted the funnels branch June 13, 2019 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants