You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current CircularHeatChart uses color scales on a category basis (i.e. max and min of each layer get the lightest and darkest color for that layer).
how can i alter the code to allow for a absolute maximum and a minimum such that the absolute minimum gets the lightest color and the absolute maximum get the darkest.
Thank you in advance for your help!!
The text was updated successfully, but these errors were encountered:
1.Enable Code of Line 307:
color.domain([d.minPrice, d.maxPrice]);
to determine the minimum and maximum values.
2.And Enable code of Line 247, and disable code of Line 248:
color = d3.scale.linear().range(['#c7f918', '#4a5a11']),
// color = d3.scale.category20();
to set customized threshold color, instead of using a category basis color.
Then you could get the absolute minimum gets the lightest color and the maximum gets the darkest.
My apologies for leaving that part out. I had already changed those two codes you suggested in order to get the same colour group.
as you can see they are the same shade, however i want 99.3 to be alot lighter, even though it is the smallest number in it's layer and 97.1 is the absolute min so it should be alot darker. I hope this makes my question more clear.
The current CircularHeatChart uses color scales on a category basis (i.e. max and min of each layer get the lightest and darkest color for that layer).
how can i alter the code to allow for a absolute maximum and a minimum such that the absolute minimum gets the lightest color and the absolute maximum get the darkest.
Thank you in advance for your help!!
The text was updated successfully, but these errors were encountered: