$(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: [[1243814400000,0.686447],[1243900800000,0.69166],[1243987200000,0.692627],[1244073600000,0.690983],[1244160000000,0.685724],[1244246400000,0.689696],[1244332800000,0.689696],[1244419200000,0.689696],[1244505600000,0.689696],[1244592000000,0.67893],[1244678400000,0.685876],[1244764800000,0.679434],[1244851200000,0.681235],[1244937600000,0.681235],[1245024000000,0.681235],[1245110400000,0.673743],[1245196800000,0.675689],[1245283200000,0.673929],[1245369600000,0.677682],[1245456000000,0.678213],[1245542400000,0.678213],[1245628800000,0.678213],[1245715200000,0.674035],[1245801600000,0.679943],[1245888000000,0.683536],[1245974400000,0.679645],[1246060800000,0.687413],[1246147200000,0.687413],[1246233600000,0.687413],[1246320000000,0.687413]], 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: [[1243814400000, 0.686447],[1243814400000, 0.686447],[1243900800000, 0.691660],[1243987200000, 0.692627],[1244073600000, 0.690983],[1244160000000, 0.685724],[1244246400000, 0.689696],[1244332800000, 0.689696],[1244419200000, 0.689696],[1244505600000, 0.689696],[1244592000000, 0.678930],[1244678400000, 0.685876],[1244764800000, 0.679434],[1244851200000, 0.681235],[1244937600000, 0.681235],[1245024000000, 0.681235],[1245110400000, 0.673743],[1245196800000, 0.675689],[1245283200000, 0.673929],[1245369600000, 0.677682],[1245456000000, 0.678213],[1245542400000, 0.678213],[1245628800000, 0.678213],[1245715200000, 0.674035],[1245801600000, 0.679943],[1245888000000, 0.683536],[1245974400000, 0.679645],[1246060800000, 0.687413],[1246147200000, 0.687413],[1246233600000, 0.687413],[1246320000000, 0.687413]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });