$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1435708800000,15.5978],[1435795200000,15.5634],[1435881600000,15.5393],[1435968000000,15.5968],[1436054400000,15.5968],[1436140800000,15.5968],[1436227200000,15.7364],[1436313600000,15.9832],[1436400000000,16.2376],[1436486400000,16.1751],[1436572800000,16.2611],[1436659200000,16.2611],[1436745600000,16.2611],[1436832000000,16.2272],[1436918400000,16.1732],[1437004800000,16.2264],[1437091200000,16.0852],[1437177600000,16.1211],[1437264000000,16.1211],[1437350400000,16.1211],[1437436800000,16.0519],[1437523200000,16.1247],[1437609600000,16.1177],[1437696000000,16.1122],[1437782400000,16.0557],[1437868800000,16.0557],[1437955200000,16.0557],[1438041600000,16.0557],[1438128000000,16.1206],[1438214400000,16.1507],[1438300800000,15.7282]], 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, 15.597783],[1435708800000, 15.597783],[1435795200000, 15.563392],[1435881600000, 15.539295],[1435968000000, 15.596769],[1436054400000, 15.596769],[1436140800000, 15.596769],[1436227200000, 15.736421],[1436313600000, 15.983214],[1436400000000, 16.237628],[1436486400000, 16.175052],[1436572800000, 16.261085],[1436659200000, 16.261085],[1436745600000, 16.261085],[1436832000000, 16.227182],[1436918400000, 16.173220],[1437004800000, 16.226353],[1437091200000, 16.085184],[1437177600000, 16.121083],[1437264000000, 16.121083],[1437350400000, 16.121083],[1437436800000, 16.051878],[1437523200000, 16.124737],[1437609600000, 16.117661],[1437696000000, 16.112225],[1437782400000, 16.055737],[1437868800000, 16.055737],[1437955200000, 16.055737],[1438041600000, 16.055737],[1438128000000, 16.120646],[1438214400000, 16.150670],[1438300800000, 15.728227]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });