Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

How to change the gradient of linear color scheme so that it includes negative numbers? #49

Open
3 tasks
ghost opened this issue Apr 10, 2019 · 8 comments
Open
3 tasks
Labels
#bug Something isn't working

Comments

@ghost
Copy link

ghost commented Apr 10, 2019

@klazaj commented on Mar 4, 2019, 4:53 PM UTC:

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version

0.999.0dev

Expected results

In the linear color scheme the negative numbers are shown as one color, and the color only starts to change when starting from 0. How can I change the range to [-1, 1]?

Actual results

Steps to reproduce

This issue was moved by kristw from apache/incubator-superset#6974.

@ghost ghost added the #bug Something isn't working label Apr 10, 2019
@ghost
Copy link
Author

ghost commented Apr 10, 2019

@kristw commented on Mar 4, 2019, 5:56 PM UTC:

Which chart is this?

@ghost
Copy link
Author

ghost commented Apr 10, 2019

@klazaj commented on Mar 4, 2019, 6:37 PM UTC:

kristw it is the country map chart

@ghost
Copy link
Author

ghost commented Apr 10, 2019

@klazaj commented on Mar 29, 2019, 10:38 AM UTC:

kristw any updates on this bug?

@ghost
Copy link
Author

ghost commented Apr 10, 2019

@kristw commented on Apr 10, 2019, 4:29 PM UTC:

/move apache-superset/superset-ui-plugins

@ghost
Copy link
Author

ghost commented Apr 10, 2019

move[bot] commented on Apr 10, 2019, 4:29 PM UTC:

⚠️ The GitHub App must be installed for the target repository.

@zufolo441
Copy link

I have a similar problem: I have to represent values very close each other (from 8 to 14)
, and the color isn't graduated from min to max, but quite the same. I tried to look in countrymap.js but no success.
is it possible to solve in some way? thanks.
Screenshot_20191024_163111

@klazaj
Copy link

klazaj commented Oct 28, 2019

@zufolo441 maybe normalize your values so that they fall in the [0,1] range and then plot them in the chart

@zufolo441
Copy link

zufolo441 commented Oct 29, 2019

Thanks for the answer, but this morning I solved: I had to change from SUM() to AVG(). Notice that data itself are not aggregated: table has a row for each italian province, so sum() == avg().

Screenshot_20191029_141106

nytai pushed a commit to preset-io/superset-ui-plugins that referenced this issue Apr 27, 2020
feat: Add `createLoadableRenderer`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
#bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants