$(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: [[1233446400000,2.85806],[1233532800000,2.85806],[1233619200000,2.84558],[1233705600000,2.86542],[1233792000000,2.85851],[1233878400000,2.86096],[1233964800000,2.8536],[1234051200000,2.8536],[1234137600000,2.8536],[1234224000000,2.90088],[1234310400000,2.89174],[1234396800000,2.88527],[1234483200000,2.86185],[1234569600000,null],[1234656000000,null],[1234742400000,2.85962],[1234828800000,2.84669],[1234915200000,2.81748],[1235001600000,2.809],[1235088000000,2.83331],[1235174400000,2.80789],[1235260800000,2.80789],[1235347200000,2.80789],[1235433600000,2.85405],[1235520000000,2.84624],[1235606400000,2.85338],[1235692800000,2.85048],[1235779200000,2.81971]], 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.858063],[1233446400000, 2.858063],[1233532800000, 2.858063],[1233619200000, 2.845575],[1233705600000, 2.865422],[1233792000000, 2.858509],[1233878400000, 2.860962],[1233964800000, 2.853603],[1234051200000, 2.853603],[1234137600000, 2.853603],[1234224000000, 2.900880],[1234310400000, 2.891737],[1234396800000, 2.885270],[1234483200000, 2.861854],[1234742400000, 2.859624],[1234828800000, 2.846690],[1234915200000, 2.817476],[1235001600000, 2.809001],[1235088000000, 2.833309],[1235174400000, 2.807886],[1235260800000, 2.807886],[1235347200000, 2.807886],[1235433600000, 2.854049],[1235520000000, 2.846244],[1235606400000, 2.853380],[1235692800000, 2.850481],[1235779200000, 2.819706]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });