$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс EEK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс EEK', data: [[1270080000000,0.682711],[1270166400000,0.682154],[1270252800000,0.682154],[1270339200000,0.682154],[1270425600000,0.682154],[1270512000000,0.682154],[1270598400000,0.678507],[1270684800000,0.675603],[1270771200000,0.673553],[1270857600000,0.678028],[1270944000000,0.678028],[1271030400000,0.678028],[1271116800000,0.68821],[1271203200000,0.688092],[1271289600000,0.689713],[1271376000000,0.686073],[1271462400000,0.685617],[1271548800000,0.685617],[1271635200000,0.685617],[1271721600000,0.680408],[1271808000000,0.683117],[1271894400000,0.677428],[1271980800000,0.675688],[1272067200000,0.67427],[1272153600000,0.67427],[1272240000000,0.67427],[1272326400000,0.674802],[1272412800000,0.673215],[1272499200000,0.670935],[1272585600000,0.671492]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1270080000000, 0.682711],[1270080000000, 0.682711],[1270166400000, 0.682154],[1270252800000, 0.682154],[1270339200000, 0.682154],[1270425600000, 0.682154],[1270512000000, 0.682154],[1270598400000, 0.678507],[1270684800000, 0.675603],[1270771200000, 0.673553],[1270857600000, 0.678028],[1270944000000, 0.678028],[1271030400000, 0.678028],[1271116800000, 0.688210],[1271203200000, 0.688092],[1271289600000, 0.689713],[1271376000000, 0.686073],[1271462400000, 0.685617],[1271548800000, 0.685617],[1271635200000, 0.685617],[1271721600000, 0.680408],[1271808000000, 0.683117],[1271894400000, 0.677428],[1271980800000, 0.675688],[1272067200000, 0.674270],[1272153600000, 0.674270],[1272240000000, 0.674270],[1272326400000, 0.674802],[1272412800000, 0.673215],[1272499200000, 0.670935],[1272585600000, 0.671492]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });