$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1435708800000,29.5416],[1435795200000,29.4544],[1435881600000,29.4024],[1435968000000,29.4117],[1436054400000,29.4117],[1436140800000,29.4117],[1436227200000,29.7275],[1436313600000,30.2706],[1436400000000,30.6689],[1436486400000,30.5319],[1436572800000,30.7853],[1436659200000,30.7853],[1436745600000,30.7853],[1436832000000,30.7253],[1436918400000,30.7305],[1437004800000,30.8975],[1437091200000,30.5916],[1437177600000,30.6228],[1437264000000,30.6228],[1437350400000,30.6228],[1437436800000,30.5932],[1437523200000,30.5914],[1437609600000,30.6636],[1437696000000,30.7332],[1437782400000,30.7478],[1437868800000,30.7478],[1437955200000,30.7478],[1438041600000,30.7478],[1438128000000,30.7978],[1438214400000,30.8808],[1438300800000,30.1348]], 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, 29.541585],[1435708800000, 29.541585],[1435795200000, 29.454394],[1435881600000, 29.402410],[1435968000000, 29.411700],[1436054400000, 29.411700],[1436140800000, 29.411700],[1436227200000, 29.727546],[1436313600000, 30.270634],[1436400000000, 30.668870],[1436486400000, 30.531862],[1436572800000, 30.785339],[1436659200000, 30.785339],[1436745600000, 30.785339],[1436832000000, 30.725325],[1436918400000, 30.730486],[1437004800000, 30.897539],[1437091200000, 30.591578],[1437177600000, 30.622770],[1437264000000, 30.622770],[1437350400000, 30.622770],[1437436800000, 30.593218],[1437523200000, 30.591353],[1437609600000, 30.663620],[1437696000000, 30.733197],[1437782400000, 30.747818],[1437868800000, 30.747818],[1437955200000, 30.747818],[1438041600000, 30.747818],[1438128000000, 30.797768],[1438214400000, 30.880833],[1438300800000, 30.134759]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });