$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1435708800000,0.17154],[1435795200000,0.170658],[1435881600000,0.169942],[1435968000000,0.171006],[1436054400000,0.171006],[1436140800000,0.171006],[1436227200000,0.173262],[1436313600000,0.177179],[1436400000000,0.180921],[1436486400000,0.179829],[1436572800000,0.179088],[1436659200000,0.179088],[1436745600000,0.179088],[1436832000000,0.178047],[1436918400000,0.178379],[1437004800000,0.179021],[1437091200000,0.177116],[1437177600000,0.177558],[1437264000000,0.177558],[1437350400000,0.177558],[1437436800000,0.177329],[1437523200000,0.177042],[1437609600000,0.177786],[1437696000000,0.177856],[1437782400000,0.177938],[1437868800000,0.177938],[1437955200000,0.177938],[1438041600000,0.177938],[1438128000000,0.178064],[1438214400000,0.178367],[1438300800000,0.173767]], 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: [[1435708800000, 0.171540],[1435708800000, 0.171540],[1435795200000, 0.170658],[1435881600000, 0.169942],[1435968000000, 0.171006],[1436054400000, 0.171006],[1436140800000, 0.171006],[1436227200000, 0.173262],[1436313600000, 0.177179],[1436400000000, 0.180921],[1436486400000, 0.179829],[1436572800000, 0.179088],[1436659200000, 0.179088],[1436745600000, 0.179088],[1436832000000, 0.178047],[1436918400000, 0.178379],[1437004800000, 0.179021],[1437091200000, 0.177116],[1437177600000, 0.177558],[1437264000000, 0.177558],[1437350400000, 0.177558],[1437436800000, 0.177329],[1437523200000, 0.177042],[1437609600000, 0.177786],[1437696000000, 0.177856],[1437782400000, 0.177938],[1437868800000, 0.177938],[1437955200000, 0.177938],[1438041600000, 0.177938],[1438128000000, 0.178064],[1438214400000, 0.178367],[1438300800000, 0.173767]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });