Highcharts热图 - 禁用图例会产生不同的颜色 [英] Highcharts heatmap - disabling the legend results in different colors
问题描述
图例:{
启用:假
}
图表中使用的颜色不同。我还提供了一些colorAxis信息,如分钟,最大和停止。这是一个小提琴,它说明了我遇到的问题。
如何让Highcharts使用图例启用时使用的相同颜色,但禁用图例? 它看起来像一个可能的错误,所以我向我们的开发人员报告: https: //github.com/highcharts/highcharts/issues/5205
解决方法:
tickPositions
- http: //jsfiddle.net/vLtc1tz6/1/
startOnTick
和endOnTick for colorAxis - http://jsfiddle.net/vLtc1tz6/2/
I am using a Highcharts heatmap and if I disable the legend by setting
legend: {
enabled: false
}
the colors used in the chart are different. I am also providing some colorAxis info like a min, max and stops. Here is a fiddle that illustrates the issue I'm having.
How can I get Highcharts to use the same colors that it uses when the legend is enabled, but disable the legend?
It looks like a possibly bug, so I reported that to our developers here: https://github.com/highcharts/highcharts/issues/5205
Workaround:
- set
tickPositions
for colorAxis - http://jsfiddle.net/vLtc1tz6/1/ - set to false
startOnTick
and endOnTick for colorAxis - http://jsfiddle.net/vLtc1tz6/2/
这篇关于Highcharts热图 - 禁用图例会产生不同的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!