$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1485907200000,1.35316],[1485993600000,1.35156],[1486080000000,1.35406],[1486166400000,1.35883],[1486252800000,1.35883],[1486339200000,1.35883],[1486425600000,1.36929],[1486512000000,1.35964],[1486598400000,1.35261],[1486684800000,1.35608],[1486771200000,1.36139],[1486857600000,1.36139],[1486944000000,1.36139],[1487030400000,1.35806],[1487116800000,1.36007],[1487203200000,1.34751],[1487289600000,1.34548],[1487376000000,1.34891],[1487462400000,1.34891],[1487548800000,1.34891],[1487635200000,1.35177],[1487721600000,1.35198],[1487808000000,1.34889],[1487894400000,1.34237],[1487980800000,1.34579],[1488067200000,1.34579],[1488153600000,1.34579],[1488240000000,1.35275]], 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: [[1485907200000, 1.353158],[1485907200000, 1.353158],[1485993600000, 1.351565],[1486080000000, 1.354061],[1486166400000, 1.358831],[1486252800000, 1.358831],[1486339200000, 1.358831],[1486425600000, 1.369292],[1486512000000, 1.359644],[1486598400000, 1.352611],[1486684800000, 1.356078],[1486771200000, 1.361390],[1486857600000, 1.361390],[1486944000000, 1.361390],[1487030400000, 1.358059],[1487116800000, 1.360075],[1487203200000, 1.347511],[1487289600000, 1.345478],[1487376000000, 1.348913],[1487462400000, 1.348913],[1487548800000, 1.348913],[1487635200000, 1.351765],[1487721600000, 1.351985],[1487808000000, 1.348886],[1487894400000, 1.342374],[1487980800000, 1.345787],[1488067200000, 1.345787],[1488153600000, 1.345787],[1488240000000, 1.352751]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });