$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1422748800000,12.8941],[1422835200000,12.8941],[1422921600000,12.7447],[1423008000000,12.8168],[1423094400000,13.2934],[1423180800000,14.4549],[1423267200000,null],[1423353600000,18.4689],[1423440000000,18.4689],[1423526400000,20.0529],[1423612800000,19.872],[1423699200000,20.4947],[1423785600000,19.9027],[1423872000000,20.6357],[1423958400000,20.6357],[1424044800000,20.6357],[1424131200000,20.8271],[1424217600000,21.1671],[1424304000000,21.6579],[1424390400000,21.9745],[1424476800000,22.2505],[1424563200000,22.2505],[1424649600000,22.2505],[1424736000000,22.7582],[1424822400000,22.421],[1424908800000,22.183],[1424995200000,24.1212],[1425081600000,22.2644]], 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: [[1422748800000, 12.894118],[1422748800000, 12.894118],[1422835200000, 12.894118],[1422921600000, 12.744662],[1423008000000, 12.816829],[1423094400000, 13.293399],[1423180800000, 14.454872],[1423353600000, 18.468854],[1423440000000, 18.468854],[1423526400000, 20.052899],[1423612800000, 19.872044],[1423699200000, 20.494711],[1423785600000, 19.902698],[1423872000000, 20.635720],[1423958400000, 20.635720],[1424044800000, 20.635720],[1424131200000, 20.827104],[1424217600000, 21.167126],[1424304000000, 21.657931],[1424390400000, 21.974508],[1424476800000, 22.250450],[1424563200000, 22.250450],[1424649600000, 22.250450],[1424736000000, 22.758221],[1424822400000, 22.421028],[1424908800000, 22.183037],[1424995200000, 24.121242],[1425081600000, 22.264401]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });