apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.81k stars 13.87k forks source link

How does color ends up in the queryResponse.data #3217

Closed ghost closed 6 years ago

ghost commented 7 years ago

I'm trying to populate a color pciker based on data from queryResponse. I've noticed that for some slices ( such as Time-Series Stacked ) color appears in the queryResponse.data structure. I cannot find from where it's added. A little help would be awesome. Thank you

screen shot 2017-08-01 at 12 46 01
mistercrunch commented 7 years ago

It depends on the visualization but here are some js color related functions: https://github.com/apache/incubator-superset/blob/master/superset/assets/javascripts/modules/colors.js

ghost commented 7 years ago

Yes I know about colors.js. As an example: for Time-Series Stacked color appears in the json ( see picture above ), but for Line chart it does not, and that is my problem.

mistercrunch commented 6 years ago

Notice: this issue has been closed because it has been inactive for 264 days. Feel free to comment and request for this issue to be reopened.