我在这里有问题的示例代码:http: //jsfiddle.net/pzamora/ztxPr/1/
我的系列中有不同的颜色,但是我需要它们出现在图例中
series: [{ name: 'V Genes',
data:
[
{
count: 18320.0,
y: 0.92,
color: '#3D96AE'
},
{
count: 1337.0,
y: 0.17,
color: '#3D96AE'
},
{
count: 33970.0,
y: 1.71,
color: '#4572A7'
},
{
count: 1221.0,
y: 1.06,
color: '#3D96AE'
},
{
count: 22073.0,
y: 1.11,
color: '#4572A7'
},
{
count: 8331.0,
y: 0.42,
color: '#3D96AE'
},
{
count: 64974.0,
y: 3.27,
color: '#4572A7'
},
{
count: 9532.0,
y: 0.48,
color: '#3D96AE'
},
{
count: 18106.0,
y: 0.91,
color: '#4572A7'
}
]
}]
..我将 x 值与类别位置匹配,但我没有将所有数据显示在图表上
@jsfiddle:http: //jsfiddle.net/pzamora/phrP7/4/