在IE8中,Highcharts条形图系列将变黑 [英] Highcharts bar chart series coming black in IE8
本文介绍了在IE8中,Highcharts条形图系列将变黑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在使用highcharts 3.0.10时遇到问题。
当我给它'透明'时(因为我想要显示背景图像而不是系列颜色),IE8上的条形图系列在IE8上呈现黑色(适用于所有其他浏览器)
系列:[{
颜色:'透明',
数据:'',
pointWidth:70}] < br $> b $ b
我已经搜索但没有得到解决方案。请给我任何合适的解决方案。
谢谢
Hello everyone,
I am getting issue while working with highcharts 3.0.10 .
Bar chart series coming in black color on IE8 (works well on all other browsers) when I gave it 'transparent' (because I want to show a background image rather then the series color)
series: [{
color: 'transparent',
data: '',
pointWidth : 70}]
I have searched but didn't get the solution for this .Please provide me any suitable solution.
Thanks
推荐答案
如果有人仍然遇到此问题,我可以通过使用一个RGB值指定图表的所有颜色来解决问题。
例如,此代码:
If anyone is still having an issue with this, I was able to solve the problem by specifying all colors of the chart using aRGB values.
For example, this code:
chart.SetSeries(new[]
{
new Series {
Name = "Average",
Data = GetAverageData(),
Color = Color.Crimson
},
new Series {
Name = "Order",
Data = GetOrderData(),
Color = Color.RoyalBlue
}
});
转换为:
was converted to:
chart.SetSeries(new[]
{
new Series {
Name = "Average",
Data = GetAverageData(),
Color = Color.FromArgb(255, 220, 20, 60)
},
new Series {
Name = "Order",
Data = GetOrderData(),
Color = Color.FromArgb(255, 65, 105, 225)
}
});
这篇关于在IE8中,Highcharts条形图系列将变黑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文