Highcharts热图 - 禁用图例会产生不同的颜色 [英] Highcharts heatmap - disabling the legend results in different colors

查看:411
本文介绍了Highcharts热图 - 禁用图例会产生不同的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 图例:{
启用:假
}

图表中使用的颜色不同。我还提供了一些colorAxis信息,如分钟,最大和停止。这是一个小提琴,它说明了我遇到的问题。



如何让Highcharts使用图例启用时使用的相同颜色,但禁用图例? 它看起来像一个可能的错误,所以我向我们的开发人员报告: https: //github.com/highcharts/highcharts/issues/5205



解决方法:


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:

这篇关于Highcharts热图 - 禁用图例会产生不同的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆