$(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: [[1233446400000,2.21164],[1233532800000,2.21164],[1233619200000,2.21184],[1233705600000,2.17469],[1233792000000,2.11165],[1233878400000,2.12506],[1233964800000,2.14217],[1234051200000,2.14217],[1234137600000,2.14217],[1234224000000,2.234],[1234310400000,2.24398],[1234396800000,2.17289],[1234483200000,2.1458],[1234569600000,null],[1234656000000,null],[1234742400000,2.12658],[1234828800000,2.05328],[1234915200000,1.99368],[1235001600000,2.02631],[1235088000000,2.09263],[1235174400000,2.04128],[1235260800000,2.04128],[1235347200000,2.04128],[1235433600000,2.12221],[1235520000000,2.09855],[1235606400000,2.11806],[1235692800000,2.09586],[1235779200000,2.07014]], 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: [[1233446400000, 2.211636],[1233446400000, 2.211636],[1233532800000, 2.211636],[1233619200000, 2.211837],[1233705600000, 2.174685],[1233792000000, 2.111652],[1233878400000, 2.125058],[1233964800000, 2.142172],[1234051200000, 2.142172],[1234137600000, 2.142172],[1234224000000, 2.234005],[1234310400000, 2.243980],[1234396800000, 2.172889],[1234483200000, 2.145800],[1234742400000, 2.126580],[1234828800000, 2.053280],[1234915200000, 1.993684],[1235001600000, 2.026307],[1235088000000, 2.092633],[1235174400000, 2.041282],[1235260800000, 2.041282],[1235347200000, 2.041282],[1235433600000, 2.122205],[1235520000000, 2.098550],[1235606400000, 2.118059],[1235692800000, 2.095856],[1235779200000, 2.070142]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });