$(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: [[1472688000000,19.125],[1472774400000,19.5198],[1472860800000,19.6172],[1472947200000,19.6172],[1473033600000,19.6172],[1473120000000,19.7447],[1473206400000,19.8019],[1473292800000,19.8546],[1473379200000,19.7948],[1473465600000,19.671],[1473552000000,19.671],[1473638400000,19.671],[1473724800000,19.569],[1473811200000,19.4029],[1473897600000,19.2712],[1473984000000,19.1937],[1474070400000,18.982],[1474156800000,18.982],[1474243200000,18.982],[1474329600000,18.902],[1474416000000,18.9413],[1474502400000,19.1204],[1474588800000,19.1394],[1474675200000,19.1359],[1474761600000,19.1359],[1474848000000,19.1359],[1474934400000,19.0456],[1475020800000,18.9975],[1475107200000,19.0367],[1475193600000,19.0199]], 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: [[1472688000000, 19.124990],[1472688000000, 19.124990],[1472774400000, 19.519753],[1472860800000, 19.617195],[1472947200000, 19.617195],[1473033600000, 19.617195],[1473120000000, 19.744721],[1473206400000, 19.801850],[1473292800000, 19.854613],[1473379200000, 19.794792],[1473465600000, 19.670983],[1473552000000, 19.670983],[1473638400000, 19.670983],[1473724800000, 19.569049],[1473811200000, 19.402863],[1473897600000, 19.271199],[1473984000000, 19.193697],[1474070400000, 18.981952],[1474156800000, 18.981952],[1474243200000, 18.981952],[1474329600000, 18.902042],[1474416000000, 18.941328],[1474502400000, 19.120421],[1474588800000, 19.139398],[1474675200000, 19.135899],[1474761600000, 19.135899],[1474848000000, 19.135899],[1474934400000, 19.045632],[1475020800000, 18.997489],[1475107200000, 19.036661],[1475193600000, 19.019899]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });