1

here is my highmaps
http://jsfiddle.net/waqarakbar/8fypgxvc/
I need to reverse the values of the legend so that 30 go to top (red color) and 0 come to bottom (green color). Reversing either the values or the color gradient will solve my problem. I have tried

colorAxis: {
    reversed:false
}

but it reverse both, values and color (I need only one to be reversed). I have also tried

legend: {
    reversed: true
}

but it seems to be not working at all...

Another possible solution that will solve my problem is to draw the legend based on some other attribute instead of "value" attribute. Highmaps is using the value of "value" attribute to draw the color gradient of the legend, in my case, i would like to draw it on the basis of "rank" attribute that i assigned to districts.

4

1 に答える 1