如何去掉下面的那个 单击 隐藏http://www.highcharts.com/demo/column-drilldown。。我已经改成这样了,还要修改哪里
var chart;
$(document).ready(function () {
var colors = Highcharts.getOptions().colors,
categories = ['成功', '失败'], data = [{
y: 55.11,
color: colors[0]
}, {
y: 11.94,
color: colors[2]
}];
chart = new Highcharts.Chart({
chart: {
renderTo: 'cc',
type: 'column'
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
categories: categories
},
yAxis: {
title: {
text: ''
}
},
plotOptions: {
column: {
cursor: 'pointer', dataLabels: {
enabled: true,
color: colors[0],
style: {
fontWeight: 'bold'
},
formatter: function () {
return this.y + '(个)';
}
}
}
},
tooltip: {
formatter: function () {
var point = this.point,
s = '运行' + this.x + '的有' + ':<b>' + this.y + '个</b><br/>';
return s;
}
},
series: [{
name: '', //这边。一旦name=空或者null 会自动加上一个series1.,,series整个去掉的话,图又显示不出来。
data: data,
color: 'red'
}],
exporting: {
enabled: false
}
});
});
var chart;
$(document).ready(function () {
var colors = Highcharts.getOptions().colors,
categories = ['成功', '失败'], data = [{
y: 55.11,
color: colors[0]
}, {
y: 11.94,
color: colors[2]
}];
chart = new Highcharts.Chart({
chart: {
renderTo: 'cc',
type: 'column'
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
categories: categories
},
yAxis: {
title: {
text: ''
}
},
plotOptions: {
column: {
cursor: 'pointer', dataLabels: {
enabled: true,
color: colors[0],
style: {
fontWeight: 'bold'
},
formatter: function () {
return this.y + '(个)';
}
}
},
series: {
showInLegend: false
}
},
tooltip: {
formatter: function () {
var point = this.point,
s = '运行' + this.x + '的有' + ':<b>' + this.y + '个</b><br/>';
return s;
}
},
ignoreHiddenSeries: true,
series: [{
name: '',
//这边。一旦name=空或者null 会自动加上一个series1.,,series整个去掉的话,图又显示不出来。
data: data,
color: 'red'
}],
exporting: {
enabled: false
}
});
});
plotOptions: {
//.....
series: {
showInLegend: false
}
},
http://www.highcharts.com/ref/
谢谢了初次接触这个。- -文档都是英文的。我晕啊。。怎么查看我所需的。。比如 你上面那个怎么找的showInLegend