【发布时间】:2017-12-07 10:08:00
【问题描述】:
Highcharts API 参考解释说 colorVariation.to 是应用于最后一个兄弟的颜色变化的结束值。 演示示例:http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/demo/sunburst/
levels: [{
level: 2,
colorByPoint: true,
dataLabels: {
rotationMode: 'parallel'
}
},
{
level: 3,
colorVariation: {
key: 'brightness',
to: -0.5
}
}, {
level: 4,
colorVariation: {
key: 'brightness',
to: 0.5
}
}]
当我为级别 3 设置 colorVariation.To = 0 时,此级别的所有兄弟姐妹都以相同的颜色显示。参考:http://jsfiddle.net/hqkk8ut5/
levels: [{
level: 2,
colorByPoint: true,
dataLabels: {
rotationMode: 'parallel'
}
},
{
level: 3,
colorVariation: {
key: 'brightness',
to: 0
}
}, {
level: 4,
colorVariation: {
key: 'brightness',
to: 0.5
}
}]
在我的应用程序中,我想配置 colorVariation.to 值。 我想知道我应该允许什么范围的值?
【问题讨论】:
标签: javascript highcharts sunburst-diagram