Shopify / polaris

Shopify’s design system to help us work together to build a great experience for all of our merchants.
https://polaris.shopify.com
Other
5.82k stars 1.17k forks source link

Feature Request / Question: Chart Type #321

Closed ccw0505 closed 6 years ago

ccw0505 commented 6 years ago

Does Polaris support / plan to support following charts?

Example - 100% Stacked Bar Chart image

Example - Geomap image

ry5n commented 6 years ago

We don’t have plans to release guidelines for these chart types, but ai can ask what our specialists would recommend.

We also don’t have immediate plans to release components for data viz. There are several reasons for this, partly to do with the complexities of building them, and possible dependency on other libraries. We have used both D3 and HighCharts internally, but I’d rather not impose those dependencies, especially due to HighCharts not being an open-source license.

ccw0505 commented 6 years ago

thx

ry5n commented 6 years ago

In additional to the technical details, I can offer some comments on these graph types. I should note I’m not a dataviz expert. That said, I would try other graph types before using a stacked bar chart or geomap, and I would always avoid pie charts.

There are several reasons:

Here’s an example of making a “standard” stacked bar chart much more readable, but it could be that there are better ways to visualize this data that are even better: http://austinclemens.com/blog/2016/09/14/stacked-bar-charts-often-bad-makeover-vox-com-graph/

ccw0505 commented 6 years ago

Agree pie chart is not good for UX - and we should avoid it. Good to include this tips in polaris guide.

Thanks for other info as well. We will use the available chart type from polaris and avoid building new components first.