$(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: [[1427846400000,17.0782],[1427932800000,17.1848],[1428019200000,17.2979],[1428105600000,17.1473],[1428192000000,17.1473],[1428278400000,17.1473],[1428364800000,17.2523],[1428451200000,17.3166],[1428537600000,17.365],[1428624000000,17.3106],[1428710400000,16.7507],[1428796800000,16.7507],[1428883200000,16.7507],[1428969600000,16.7507],[1429056000000,16.8192],[1429142400000,16.0007],[1429228800000,15.8396],[1429315200000,15.6809],[1429401600000,15.6809],[1429488000000,15.6809],[1429574400000,16.4985],[1429660800000,16.5032],[1429747200000,16.7523],[1429833600000,16.7233],[1429920000000,16.7864],[1430006400000,16.7864],[1430092800000,16.7864],[1430179200000,17.1672],[1430265600000,16.8545],[1430352000000,15.9069]], 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: [[1427846400000, 17.078207],[1427846400000, 17.078207],[1427932800000, 17.184833],[1428019200000, 17.297901],[1428105600000, 17.147291],[1428192000000, 17.147291],[1428278400000, 17.147291],[1428364800000, 17.252299],[1428451200000, 17.316622],[1428537600000, 17.364971],[1428624000000, 17.310617],[1428710400000, 16.750681],[1428796800000, 16.750681],[1428883200000, 16.750681],[1428969600000, 16.750681],[1429056000000, 16.819173],[1429142400000, 16.000739],[1429228800000, 15.839647],[1429315200000, 15.680861],[1429401600000, 15.680861],[1429488000000, 15.680861],[1429574400000, 16.498465],[1429660800000, 16.503158],[1429747200000, 16.752268],[1429833600000, 16.723256],[1429920000000, 16.786381],[1430006400000, 16.786381],[1430092800000, 16.786381],[1430179200000, 17.167182],[1430265600000, 16.854522],[1430352000000, 15.906935]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });