$(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: [[1517443200000,0.086229],[1517529600000,0.086355],[1517616000000,0.086708],[1517702400000,0.086708],[1517788800000,0.086708],[1517875200000,0.086068],[1517961600000,0.08474],[1518048000000,0.083744],[1518134400000,0.083369],[1518220800000,0.082667],[1518307200000,0.082667],[1518393600000,0.082667],[1518480000000,0.082156],[1518566400000,0.082352],[1518652800000,0.082638],[1518739200000,0.083515],[1518825600000,0.0845],[1518912000000,0.0845],[1518998400000,0.0845],[1519084800000,0.084592],[1519171200000,0.084871],[1519257600000,0.084369],[1519344000000,0.084684],[1519430400000,0.084432],[1519516800000,0.084432],[1519603200000,0.084432],[1519689600000,0.084684],[1519776000000,0.084562]], 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: [[1517443200000, 0.086229],[1517443200000, 0.086229],[1517529600000, 0.086355],[1517616000000, 0.086708],[1517702400000, 0.086708],[1517788800000, 0.086708],[1517875200000, 0.086068],[1517961600000, 0.084740],[1518048000000, 0.083744],[1518134400000, 0.083369],[1518220800000, 0.082667],[1518307200000, 0.082667],[1518393600000, 0.082667],[1518480000000, 0.082156],[1518566400000, 0.082352],[1518652800000, 0.082638],[1518739200000, 0.083515],[1518825600000, 0.084500],[1518912000000, 0.084500],[1518998400000, 0.084500],[1519084800000, 0.084592],[1519171200000, 0.084871],[1519257600000, 0.084369],[1519344000000, 0.084684],[1519430400000, 0.084432],[1519516800000, 0.084432],[1519603200000, 0.084432],[1519689600000, 0.084684],[1519776000000, 0.084562]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });