Graphs / metrics for non-ShopifyQL

The new web components to show graphs in Polaris are nice, but the problem is that they can only be used with ShopifyQL.

The main issue is that not everything requires ShopifyQL for app specific graphs. Yet, we have to ensure apps look like the Shopify Admin.

Can we get additional properties on the graph cards and metric cards to allow our own data to populate?

And move the dependency on ShopifyQL outside of the metrics components?

Although it is now deprecated, one option would be to use the polaris-viz library for some non-ShopifyQL analytics in the meantime:

But I agree, it would be great to have support via the new web-components options.

We’re not using React :sweat_smile: so I’m not to eager to implement it into the app. That being said, I would rather have Shopify to open things up.

I use echarts, it is heavy but iit works and makes me not rely on Shopify.

Hey Stefan, what type of charts or data can’t you use our components for? One of our main push this year, in parallel with opening this component up, is to bring support for custom data within analytics so ideally we can cover your use case as well.

Otherwise I agree echarts is a smart move until we cover all the cases.

Well, we don’t want all of our own data to live inside Shopify as metafields and metaobjects for starters. That would require us to synchronise a lot of data, which consumes compute, without any benefits to us.

So, we rather be able to query or provide our own data from our own database and let the components render this. It would be even more amazing if we can combine data sources to be honest. As in; show local and remote (from Shopify) in a single graph.