$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1130803200000,1.52588],[1130889600000,1.52574],[1130976000000,1.52581],[1131062400000,1.53518],[1131148800000,1.5102],[1131235200000,1.5102],[1131321600000,1.5102],[1131408000000,1.4795],[1131494400000,1.48445],[1131580800000,1.48274],[1131667200000,1.4747],[1131753600000,1.46655],[1131840000000,1.46655],[1131926400000,1.46655],[1132012800000,1.47947],[1132099200000,1.47517],[1132185600000,1.47996],[1132272000000,1.48521],[1132358400000,1.48435],[1132444800000,1.48435],[1132531200000,1.48435],[1132617600000,1.49912],[1132704000000,1.48572],[1132790400000,1.50829],[1132876800000,1.51591],[1132963200000,1.51709],[1133049600000,1.51709],[1133136000000,1.51709],[1133222400000,1.52344],[1133308800000,1.52556]], 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.525876],[1130803200000, 1.525876],[1130889600000, 1.525737],[1130976000000, 1.525815],[1131062400000, 1.535183],[1131148800000, 1.510203],[1131235200000, 1.510203],[1131321600000, 1.510203],[1131408000000, 1.479501],[1131494400000, 1.484454],[1131580800000, 1.482738],[1131667200000, 1.474703],[1131753600000, 1.466554],[1131840000000, 1.466554],[1131926400000, 1.466554],[1132012800000, 1.479469],[1132099200000, 1.475172],[1132185600000, 1.479956],[1132272000000, 1.485212],[1132358400000, 1.484345],[1132444800000, 1.484345],[1132531200000, 1.484345],[1132617600000, 1.499122],[1132704000000, 1.485720],[1132790400000, 1.508289],[1132876800000, 1.515913],[1132963200000, 1.517089],[1133049600000, 1.517089],[1133136000000, 1.517089],[1133222400000, 1.523445],[1133308800000, 1.525556]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });