$(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: [[1456790400000,19.2501],[1456876800000,19.3248],[1456963200000,19.1158],[1457049600000,18.8517],[1457136000000,19.1864],[1457222400000,19.1864],[1457308800000,19.1864],[1457395200000,19.1864],[1457481600000,19.1864],[1457568000000,18.9377],[1457654400000,18.4548],[1457740800000,18.7691],[1457827200000,18.896],[1457913600000,18.896],[1458000000000,19.295],[1458086400000,19.4903],[1458172800000,19.3934],[1458259200000,19.7207],[1458345600000,19.3751],[1458432000000,19.3751],[1458518400000,19.3751],[1458604800000,19.5651],[1458691200000,19.1783],[1458777600000,19.0193],[1458864000000,19.1785],[1458950400000,19.0456],[1459036800000,19.0456],[1459123200000,19.0456],[1459209600000,19.1989],[1459296000000,19.3299],[1459382400000,19.3908]], 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: [[1456790400000, 19.250128],[1456790400000, 19.250128],[1456876800000, 19.324755],[1456963200000, 19.115830],[1457049600000, 18.851741],[1457136000000, 19.186371],[1457222400000, 19.186371],[1457308800000, 19.186371],[1457395200000, 19.186371],[1457481600000, 19.186371],[1457568000000, 18.937669],[1457654400000, 18.454798],[1457740800000, 18.769085],[1457827200000, 18.896036],[1457913600000, 18.896036],[1458000000000, 19.295030],[1458086400000, 19.490350],[1458172800000, 19.393383],[1458259200000, 19.720740],[1458345600000, 19.375119],[1458432000000, 19.375119],[1458518400000, 19.375119],[1458604800000, 19.565148],[1458691200000, 19.178315],[1458777600000, 19.019260],[1458864000000, 19.178450],[1458950400000, 19.045617],[1459036800000, 19.045617],[1459123200000, 19.045617],[1459209600000, 19.198895],[1459296000000, 19.329900],[1459382400000, 19.390848]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });