$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1485907200000,0.083517],[1485993600000,0.083236],[1486080000000,0.083037],[1486166400000,0.083854],[1486252800000,0.083854],[1486339200000,0.083854],[1486425600000,0.084719],[1486512000000,0.083677],[1486598400000,0.082905],[1486684800000,0.083421],[1486771200000,0.084154],[1486857600000,0.084154],[1486944000000,0.084154],[1487030400000,0.084377],[1487116800000,0.084438],[1487203200000,0.084171],[1487289600000,0.084493],[1487376000000,0.084825],[1487462400000,0.084825],[1487548800000,0.084825],[1487635200000,0.084668],[1487721600000,0.085238],[1487808000000,0.085876],[1487894400000,0.086059],[1487980800000,0.086605],[1488067200000,0.086605],[1488153600000,0.086605],[1488240000000,0.08658]], 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, 0.083517],[1485907200000, 0.083517],[1485993600000, 0.083236],[1486080000000, 0.083037],[1486166400000, 0.083854],[1486252800000, 0.083854],[1486339200000, 0.083854],[1486425600000, 0.084719],[1486512000000, 0.083677],[1486598400000, 0.082905],[1486684800000, 0.083421],[1486771200000, 0.084154],[1486857600000, 0.084154],[1486944000000, 0.084154],[1487030400000, 0.084377],[1487116800000, 0.084438],[1487203200000, 0.084171],[1487289600000, 0.084493],[1487376000000, 0.084825],[1487462400000, 0.084825],[1487548800000, 0.084825],[1487635200000, 0.084668],[1487721600000, 0.085238],[1487808000000, 0.085876],[1487894400000, 0.086059],[1487980800000, 0.086605],[1488067200000, 0.086605],[1488153600000, 0.086605],[1488240000000, 0.086580]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });