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

dw_retrieve_chart_metadata does not return color parameters #66

Open
janicekchen opened this issue Nov 1, 2022 · 3 comments
Open

dw_retrieve_chart_metadata does not return color parameters #66

janicekchen opened this issue Nov 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@janicekchen
Copy link

Hello,

I'm trying to retrieve the color key for a chart to apply to a bunch of other charts. When I use dw_retrieve_chart_metadata, it returns all visualization parameters except for color-category. It appears empty. The same thing happens when I download the metadata via CLI and read the JSON into R.

Any suggestions for a fix is appreciated!

image

@munichrocker munichrocker added the bug Something isn't working label Sep 11, 2023
@munichrocker
Copy link
Owner

Hi @janicekchen

Thanks for bringing up this issue.

You mentioned that you experience the same behavior when downloading via the CLI. Is there any color-category data included in the return from the API at all? This might indicate a flaw with the API.

Is this only happening with choropleth maps?

Thanks!

@janicekchen
Copy link
Author

Hiya!

As far as I recall, there was no color-category data included in the return from the API. I was working with bar charts, not choropleth maps, so I'm not sure if this translates to other viz types.

@munichrocker
Copy link
Owner

Thanks @janicekchen

I was able to test this using one of the example datasets. I had to set all colors manually to enable the color-category by switching on Customize colors in the Refine -> Appearance dialogue in Visualize.

qPuRN-example-tipping-in-different-countries

This chart results in the correct data being returned from dw_retrieve_chart_metadata():

color-category_R

Could you please retry this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants