$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1435708800000,0.862391],[1435795200000,0.855798],[1435881600000,0.852795],[1435968000000,0.859158],[1436054400000,0.859158],[1436140800000,0.859158],[1436227200000,0.862705],[1436313600000,0.875302],[1436400000000,0.893261],[1436486400000,0.890851],[1436572800000,0.903793],[1436659200000,0.903793],[1436745600000,0.903793],[1436832000000,0.895423],[1436918400000,0.895977],[1437004800000,0.898807],[1437091200000,0.881138],[1437177600000,0.886082],[1437264000000,0.886082],[1437350400000,0.886082],[1437436800000,0.883173],[1437523200000,0.883966],[1437609600000,0.886567],[1437696000000,0.895561],[1437782400000,0.892916],[1437868800000,0.892916],[1437955200000,0.892916],[1438041600000,0.892916],[1438128000000,0.899184],[1438214400000,0.899547],[1438300800000,0.87516]], 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.862391],[1435708800000, 0.862391],[1435795200000, 0.855798],[1435881600000, 0.852795],[1435968000000, 0.859158],[1436054400000, 0.859158],[1436140800000, 0.859158],[1436227200000, 0.862705],[1436313600000, 0.875302],[1436400000000, 0.893261],[1436486400000, 0.890851],[1436572800000, 0.903793],[1436659200000, 0.903793],[1436745600000, 0.903793],[1436832000000, 0.895423],[1436918400000, 0.895977],[1437004800000, 0.898807],[1437091200000, 0.881138],[1437177600000, 0.886082],[1437264000000, 0.886082],[1437350400000, 0.886082],[1437436800000, 0.883173],[1437523200000, 0.883966],[1437609600000, 0.886567],[1437696000000, 0.895561],[1437782400000, 0.892916],[1437868800000, 0.892916],[1437955200000, 0.892916],[1438041600000, 0.892916],[1438128000000, 0.899184],[1438214400000, 0.899547],[1438300800000, 0.875160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });