我有一个带有向下钻取的堆叠图表,但我设置的数据有“data,data2”,我可以改变它并执行类似的操作:http: //jsfiddle.net/FWHGx/
var data = [[
{
name:'Recomendación',
y:28,
color: colors[0],
drilldown: {
name:['Recomendación','Area de Oportunidad','Observación'],
type:'column',
categories:['Geofísica','Geología','Petrofísica'],
data:[[
{name:'Txt 1',y:28, color: colors[0]},
{name:'Txt 2',y:30, color: colors[0]}
]]
}
},
{name:'Recomendación',y:30, color: colors[0]}
],
[
{name:'Area de Oportunidad',y:3, color: colors[1]},
{name:'Area de Oportunidad',y:5, color: colors[1]}
],
[
{name:'Observación',y:1, color: colors[2]},
{name:'Observación',y:2, color: colors[2]}
]];
而不是这个:http: //jsfiddle.net/NULTY/410/
data = [{
y: 55.11}
}, {
y: 21.63
}],
data2 = [{
y: 21.63
}, {
y: 55.11
}
}];