$(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: [[1491004800000,0.086131],[1491091200000,0.086131],[1491177600000,0.086131],[1491264000000,0.086206],[1491350400000,0.086728],[1491436800000,0.087019],[1491523200000,0.086599],[1491609600000,0.086173],[1491696000000,0.086173],[1491782400000,0.086173],[1491868800000,0.085991],[1491955200000,0.086372],[1492041600000,0.086206],[1492128000000,0.086183],[1492214400000,0.086248],[1492300800000,0.086248],[1492387200000,0.086248],[1492473600000,0.086248],[1492560000000,0.086413],[1492646400000,0.086005],[1492732800000,0.085654],[1492819200000,0.085479],[1492905600000,0.085479],[1492992000000,0.085479],[1493078400000,0.085523],[1493164800000,0.085473],[1493251200000,0.085101],[1493337600000,0.084586],[1493424000000,0.084481],[1493510400000,0.084481]], 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: [[1491004800000, 0.086131],[1491004800000, 0.086131],[1491091200000, 0.086131],[1491177600000, 0.086131],[1491264000000, 0.086206],[1491350400000, 0.086728],[1491436800000, 0.087019],[1491523200000, 0.086599],[1491609600000, 0.086173],[1491696000000, 0.086173],[1491782400000, 0.086173],[1491868800000, 0.085991],[1491955200000, 0.086372],[1492041600000, 0.086206],[1492128000000, 0.086183],[1492214400000, 0.086248],[1492300800000, 0.086248],[1492387200000, 0.086248],[1492473600000, 0.086248],[1492560000000, 0.086413],[1492646400000, 0.086005],[1492732800000, 0.085654],[1492819200000, 0.085479],[1492905600000, 0.085479],[1492992000000, 0.085479],[1493078400000, 0.085523],[1493164800000, 0.085473],[1493251200000, 0.085101],[1493337600000, 0.084586],[1493424000000, 0.084481],[1493510400000, 0.084481]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });