|
function highcharts(e)
{
var chart = new Highcharts.Chart({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie',
backgroundColor:null,
renderTo: 'container2'
},
title: false,
credits: {
enabled: false
} ,
exporting:{
enabled:false
},
tooltip: {
pointFormat: '{series.name} : <b>{point.y} </b>'
},
plotOptions: {
pie: {
allowPointSelect: false,
cursor: 'pointer',
dataLabels: {
enabled: false,
format: '<b>{point.name}</b>: {point.y}',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
}
},
series: [{
name: 'ourphp',
colorByPoint: true,
data: [{
name: 1,
y: 1
}, {
name: 2,
y: 2
}, {
name: 3,
y: 3
}, {
name: 4,
y: 4
}, {
name: 5,
y: 5
}]
}]
});
chart.tooltip.refresh(chart.series[0].data[0]);
}
红色部份就是打开页面时,默认展开第一个数据信息框
想隐藏K线图右侧的数据列表
legend:false,
即可
|
|