我有一个带有向下钻取的堆积图表,但是我将数据设置为" 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
}
}];
答案 0 :(得分:0)
打开控制台,并按照错误操作。如果你将逐个修复它们,你将得到正确的代码。例如,您缺少chart
变量,或者color
变量丢失(再次..)。
有些错误已修复,其余错误取决于您:http://jsfiddle.net/FWHGx/2/