App.factory "lineChartConfigure",["ChartTooltips",(ChartTooltips)->
return (tooltips,yAxisTitle)->
return {
navigator:
enabled: false
scrollbar:
enabled: false
rangeSelector:
inputEnabled: false,
selected: 5
tooltip:
formatter:()->
return ChartTooltips.call(this,tooltips)
changeDecimals: 4
series: [
type: 'line',
data: [],
]
exporting:
buttons:
contextButton:
menuItems: [
{
text: 'Export to PNG (large)',
onclick: ()->
this.exportChart();
separator: false
}
]
enabled: true
yAxis:
labels:
style:
fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
title:yAxisTitle
opposite: false
min: 0
xAxis:
ordinal: false
dateTimeLabelFormats:
millisecond: '%H:%M',
second: '%H:%M',
minute: '%H:%M',
hour: '%H:%M',
day: '%b-%e',
week: '%b-%e',
month: '%b-%e',
year: '%y-%b-%e'
labels:
style:
color: 'gray',
fontWeight: 'normal',
fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif'
}
这是我的真实数据。
这是修改后的内部highstock的数据。