Highcharts - 使用对数轴时线条消失
Highcharts - Line disappears when using logarithmic axis
如果我在 meteogram example of the highcharts demo 上将 y 轴类型更改为对数,则温度线不再可见。这是一个错误还是代码中有什么东西阻止它在对数模式下显示?
我对演示所做的唯一更改是在第 492 行添加 type: 'logarithmic'
:
yAxis: [{ // temperature axis
type: 'logarithmic',
有什么想法吗?谢谢!
这似乎确实是一个(可解决且未知?)错误。
不知何故,对数 y 轴与 negativeColor
属性不兼容。
转到 meteogram example 的 line 594
并删除 negativeColor: '#48AFE8'
属性:
592| zIndex: 1,
593| color: '#FF3333',
594| negativeColor: '#48AFE8' << remove this line
现在对数图将按预期工作。 See DEMO.
我还设置了 y 轴 min
、max
属性以及 startOnTick
和 endOnTick
到 false
以使图表看起来像好一点。希望这对您有所帮助:)
更新 1:这个错误 has now been reported to GitHub
更新 2: Highcharts 开发人员已在 2015 年 6 月 3 日 提交 fde07c2[=23 中解决了此错误=]
如果我在 meteogram example of the highcharts demo 上将 y 轴类型更改为对数,则温度线不再可见。这是一个错误还是代码中有什么东西阻止它在对数模式下显示?
我对演示所做的唯一更改是在第 492 行添加 type: 'logarithmic'
:
yAxis: [{ // temperature axis
type: 'logarithmic',
有什么想法吗?谢谢!
这似乎确实是一个(可解决且未知?)错误。
不知何故,对数 y 轴与 negativeColor
属性不兼容。
转到 meteogram example 的 line 594
并删除 negativeColor: '#48AFE8'
属性:
592| zIndex: 1,
593| color: '#FF3333',
594| negativeColor: '#48AFE8' << remove this line
现在对数图将按预期工作。 See DEMO.
我还设置了 y 轴 min
、max
属性以及 startOnTick
和 endOnTick
到 false
以使图表看起来像好一点。希望这对您有所帮助:)
更新 1:这个错误 has now been reported to GitHub
更新 2: Highcharts 开发人员已在 2015 年 6 月 3 日 提交 fde07c2[=23 中解决了此错误=]