$(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: [[1130803200000,2.9814],[1130889600000,2.97958],[1130976000000,2.97619],[1131062400000,2.97709],[1131148800000,2.97353],[1131235200000,2.97353],[1131321600000,2.97353],[1131408000000,2.97011],[1131494400000,2.96683],[1131580800000,2.9686],[1131667200000,2.96768],[1131753600000,2.96595],[1131840000000,2.96595],[1131926400000,2.96595],[1132012800000,2.96212],[1132099200000,2.96236],[1132185600000,2.964],[1132272000000,2.96975],[1132358400000,2.96794],[1132444800000,2.96794],[1132531200000,2.96794],[1132617600000,2.97469],[1132704000000,2.9683],[1132790400000,2.98029],[1132876800000,2.98656],[1132963200000,2.98373],[1133049600000,2.98373],[1133136000000,2.98373],[1133222400000,2.97719],[1133308800000,2.98729]], 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: [[1130803200000, 2.981397],[1130803200000, 2.981397],[1130889600000, 2.979579],[1130976000000, 2.976194],[1131062400000, 2.977089],[1131148800000, 2.973534],[1131235200000, 2.973534],[1131321600000, 2.973534],[1131408000000, 2.970115],[1131494400000, 2.966828],[1131580800000, 2.968595],[1131667200000, 2.967679],[1131753600000, 2.965949],[1131840000000, 2.965949],[1131926400000, 2.965949],[1132012800000, 2.962124],[1132099200000, 2.962359],[1132185600000, 2.964004],[1132272000000, 2.969752],[1132358400000, 2.967942],[1132444800000, 2.967942],[1132531200000, 2.967942],[1132617600000, 2.974692],[1132704000000, 2.968305],[1132790400000, 2.980295],[1132876800000, 2.986556],[1132963200000, 2.983733],[1133049600000, 2.983733],[1133136000000, 2.983733],[1133222400000, 2.977190],[1133308800000, 2.987292]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });