$(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: [[1483228800000,20.081],[1483315200000,20.081],[1483401600000,20.081],[1483488000000,20.081],[1483574400000,20.051],[1483660800000,20.051],[1483747200000,20.3807],[1483833600000,20.3807],[1483920000000,20.3807],[1484006400000,20.3807],[1484092800000,20.532],[1484179200000,20.4591],[1484265600000,20.8706],[1484352000000,null],[1484438400000,21.0551],[1484524800000,21.0551],[1484611200000,21.0872],[1484697600000,21.1565],[1484784000000,20.9619],[1484870400000,20.6615],[1484956800000,20.512],[1485043200000,20.512],[1485129600000,20.512],[1485216000000,20.5291],[1485302400000,20.5151],[1485388800000,20.7745],[1485475200000,20.7275],[1485561600000,20.728],[1485648000000,20.728],[1485734400000,20.728],[1485820800000,20.6161]], 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: [[1483228800000, 20.080969],[1483228800000, 20.080969],[1483315200000, 20.080969],[1483401600000, 20.080969],[1483488000000, 20.080969],[1483574400000, 20.050973],[1483660800000, 20.050973],[1483747200000, 20.380698],[1483833600000, 20.380698],[1483920000000, 20.380698],[1484006400000, 20.380698],[1484092800000, 20.531966],[1484179200000, 20.459080],[1484265600000, 20.870636],[1484438400000, 21.055081],[1484524800000, 21.055081],[1484611200000, 21.087241],[1484697600000, 21.156504],[1484784000000, 20.961908],[1484870400000, 20.661511],[1484956800000, 20.512042],[1485043200000, 20.512042],[1485129600000, 20.512042],[1485216000000, 20.529071],[1485302400000, 20.515069],[1485388800000, 20.774486],[1485475200000, 20.727501],[1485561600000, 20.727972],[1485648000000, 20.727972],[1485734400000, 20.727972],[1485820800000, 20.616130]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });