$(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: [[1527811200000,20.3222],[1527897600000,20.1244],[1527984000000,20.1244],[1528070400000,20.1244],[1528156800000,20.2483],[1528243200000,20.146],[1528329600000,20.3168],[1528416000000,20.2291],[1528502400000,20.1131],[1528588800000,20.1131],[1528675200000,20.1131],[1528761600000,20.0428],[1528848000000,20.0534],[1528934400000,20.0696],[1529020800000,20.2048],[1529107200000,20.0457],[1529193600000,20.0457],[1529280000000,20.0457],[1529366400000,19.9751],[1529452800000,19.9121],[1529539200000,null],[1529625600000,19.7329],[1529712000000,19.7704],[1529798400000,19.7704],[1529884800000,19.7704],[1529971200000,19.7035],[1530057600000,19.6591],[1530144000000,19.8032],[1530230400000,19.8032],[1530316800000,19.8032]], 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: [[1527811200000, 20.322177],[1527811200000, 20.322177],[1527897600000, 20.124397],[1527984000000, 20.124397],[1528070400000, 20.124397],[1528156800000, 20.248320],[1528243200000, 20.146045],[1528329600000, 20.316847],[1528416000000, 20.229086],[1528502400000, 20.113096],[1528588800000, 20.113096],[1528675200000, 20.113096],[1528761600000, 20.042781],[1528848000000, 20.053429],[1528934400000, 20.069562],[1529020800000, 20.204758],[1529107200000, 20.045657],[1529193600000, 20.045657],[1529280000000, 20.045657],[1529366400000, 19.975078],[1529452800000, 19.912085],[1529625600000, 19.732872],[1529712000000, 19.770407],[1529798400000, 19.770407],[1529884800000, 19.770407],[1529971200000, 19.703475],[1530057600000, 19.659142],[1530144000000, 19.803158],[1530230400000, 19.803158],[1530316800000, 19.803158]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });