$(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: [[1454284800000,0.070054],[1454371200000,0.070602],[1454457600000,0.070087],[1454544000000,0.068483],[1454630400000,0.071263],[1454716800000,0.071244],[1454803200000,0.071244],[1454889600000,0.071244],[1454976000000,0.071904],[1455062400000,0.071994],[1455148800000,0.071615],[1455235200000,0.072392],[1455321600000,0.07102],[1455408000000,0.07102],[1455494400000,0.07102],[1455580800000,0.074063],[1455667200000,0.075535],[1455753600000,0.074392],[1455840000000,0.075481],[1455926400000,0.075554],[1456012800000,0.075554],[1456099200000,0.075554],[1456185600000,0.076796],[1456272000000,0.078103],[1456358400000,0.077999],[1456444800000,0.077798],[1456531200000,0.077338],[1456617600000,0.077338],[1456704000000,0.077338]], 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: [[1454284800000, 0.070054],[1454284800000, 0.070054],[1454371200000, 0.070602],[1454457600000, 0.070087],[1454544000000, 0.068483],[1454630400000, 0.071263],[1454716800000, 0.071244],[1454803200000, 0.071244],[1454889600000, 0.071244],[1454976000000, 0.071904],[1455062400000, 0.071994],[1455148800000, 0.071615],[1455235200000, 0.072392],[1455321600000, 0.071020],[1455408000000, 0.071020],[1455494400000, 0.071020],[1455580800000, 0.074063],[1455667200000, 0.075535],[1455753600000, 0.074392],[1455840000000, 0.075481],[1455926400000, 0.075554],[1456012800000, 0.075554],[1456099200000, 0.075554],[1456185600000, 0.076796],[1456272000000, 0.078103],[1456358400000, 0.077999],[1456444800000, 0.077798],[1456531200000, 0.077338],[1456617600000, 0.077338],[1456704000000, 0.077338]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });