Skip to content
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

Is there a way to serve for Pie chart #45

Closed
smarkm opened this issue Feb 1, 2021 · 1 comment
Closed

Is there a way to serve for Pie chart #45

smarkm opened this issue Feb 1, 2021 · 1 comment

Comments

@smarkm
Copy link

smarkm commented Feb 1, 2021

I am trying to build a pie chart use this datasource, but I did not find the right way

@marcusolsson
Copy link
Contributor

I just tried it as well. The problem is that the pie chart expects a multiple series with one row, rather than one series with multiple rows, as the JSON data source currently returns.

Normally you could instead create several data source queries and filter the results in each, but since the pie chart doesn't support the new field options yet, you can't create aliases for properties with the same name.

To dynamically create series from a single data source query, we'd have to implement some kind of Group by functionality, where you'd select the property you'd want to group on, using a JSON Path.

There's already an issue for this here: #36

I'll close this issue in favor of the one I mentioned.

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

No branches or pull requests

2 participants