$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1233446400000,14.1137],[1233532800000,14.1137],[1233619200000,14.0621],[1233705600000,14.1057],[1233792000000,14.0596],[1233878400000,14.0477],[1233964800000,14.0056],[1234051200000,14.0056],[1234137600000,14.0056],[1234224000000,14.2477],[1234310400000,14.2008],[1234396800000,14.1389],[1234483200000,13.9844],[1234569600000,null],[1234656000000,null],[1234742400000,13.9637],[1234828800000,13.875],[1234915200000,13.7481],[1235001600000,13.7126],[1235088000000,13.841],[1235174400000,13.7266],[1235260800000,13.7266],[1235347200000,13.7266],[1235433600000,13.9384],[1235520000000,13.8983],[1235606400000,13.89],[1235692800000,13.8739],[1235779200000,13.7222]], 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, 14.113730],[1233446400000, 14.113730],[1233532800000, 14.113730],[1233619200000, 14.062115],[1233705600000, 14.105689],[1233792000000, 14.059630],[1233878400000, 14.047682],[1233964800000, 14.005572],[1234051200000, 14.005572],[1234137600000, 14.005572],[1234224000000, 14.247738],[1234310400000, 14.200811],[1234396800000, 14.138887],[1234483200000, 13.984447],[1234742400000, 13.963669],[1234828800000, 13.875000],[1234915200000, 13.748135],[1235001600000, 13.712597],[1235088000000, 13.841044],[1235174400000, 13.726561],[1235260800000, 13.726561],[1235347200000, 13.726561],[1235433600000, 13.938416],[1235520000000, 13.898331],[1235606400000, 13.889962],[1235692800000, 13.873893],[1235779200000, 13.722171]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });