$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1130803200000,1.77679],[1130889600000,1.77679],[1130976000000,1.76001],[1131062400000,1.76358],[1131148800000,1.74559],[1131235200000,1.74559],[1131321600000,1.74559],[1131408000000,1.72461],[1131494400000,1.71494],[1131580800000,1.72126],[1131667200000,1.72161],[1131753600000,1.71157],[1131840000000,1.71157],[1131926400000,1.71157],[1132012800000,1.71821],[1132099200000,1.71146],[1132185600000,1.71291],[1132272000000,1.70499],[1132358400000,1.71355],[1132444800000,1.71355],[1132531200000,1.71355],[1132617600000,1.72261],[1132704000000,1.71494],[1132790400000,1.73058],[1132876800000,1.72768],[1132963200000,1.71932],[1133049600000,1.71932],[1133136000000,1.71932],[1133222400000,1.70937],[1133308800000,1.73087]], 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, 1.776793],[1130803200000, 1.776793],[1130889600000, 1.776793],[1130976000000, 1.760011],[1131062400000, 1.763576],[1131148800000, 1.745593],[1131235200000, 1.745593],[1131321600000, 1.745593],[1131408000000, 1.724609],[1131494400000, 1.714945],[1131580800000, 1.721258],[1131667200000, 1.721610],[1131753600000, 1.711574],[1131840000000, 1.711574],[1131926400000, 1.711574],[1132012800000, 1.718213],[1132099200000, 1.711458],[1132185600000, 1.712910],[1132272000000, 1.704987],[1132358400000, 1.713549],[1132444800000, 1.713549],[1132531200000, 1.713549],[1132617600000, 1.722609],[1132704000000, 1.714945],[1132790400000, 1.730578],[1132876800000, 1.727677],[1132963200000, 1.719325],[1133049600000, 1.719325],[1133136000000, 1.719325],[1133222400000, 1.709373],[1133308800000, 1.730875]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });