- Replace CETC54 references with ETMS - Replace com.cetc54 package with com.example - Rename cetc54 directories to etms - Replace CECT54.WebUI to ETMS.WebUI - Replace organization names (中国电科54所 -> XX公司) - Replace internal system URLs (cetc54.com -> example.com)
66 lines
1.4 KiB
JavaScript
66 lines
1.4 KiB
JavaScript
/*
|
|
* 图表配置文件
|
|
* */
|
|
|
|
|
|
//不同类型的配置
|
|
var typeConfig = [
|
|
{
|
|
chart: {
|
|
type: 'line'
|
|
},
|
|
plotOptions: {
|
|
line: {
|
|
dataLabels: {
|
|
enabled: false
|
|
},
|
|
enableMouseTracking: true
|
|
}
|
|
}
|
|
}, {
|
|
chart: {
|
|
type: 'line'
|
|
},
|
|
plotOptions: {
|
|
line: {
|
|
dataLabels: {
|
|
enabled: true
|
|
},
|
|
enableMouseTracking: false
|
|
}
|
|
}
|
|
}, {
|
|
chart: {
|
|
type: 'area'
|
|
}
|
|
}, {
|
|
chart: {
|
|
type: 'bar'
|
|
}
|
|
}, {
|
|
chart: {
|
|
type: 'column'
|
|
}
|
|
}, {
|
|
chart: {
|
|
plotBackgroundColor: null,
|
|
plotBorderWidth: null,
|
|
plotShadow: false
|
|
},
|
|
plotOptions: {
|
|
pie: {
|
|
allowPointSelect: true,
|
|
cursor: 'pointer',
|
|
dataLabels: {
|
|
enabled: true,
|
|
color: '#000000',
|
|
connectorColor: '#000000',
|
|
formatter: function() {
|
|
return '<b>'+ this.point.name +'</b>: '+ ( Math.round( this.point.percentage*100 ) / 100 ) +' %';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
];
|