$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1527811200000,19.8265],[1527897600000,19.6672],[1527984000000,19.6672],[1528070400000,19.6672],[1528156800000,20.0328],[1528243200000,19.9135],[1528329600000,20.0326],[1528416000000,20.0406],[1528502400000,19.825],[1528588800000,19.825],[1528675200000,19.825],[1528761600000,19.845],[1528848000000,19.8323],[1528934400000,19.8198],[1529020800000,19.8245],[1529107200000,19.6646],[1529193600000,19.6646],[1529280000000,19.6646],[1529366400000,19.5874],[1529452800000,19.4351],[1529539200000,null],[1529625600000,19.3764],[1529712000000,19.4905],[1529798400000,19.4905],[1529884800000,19.4905],[1529971200000,19.4531],[1530057600000,19.3738],[1530144000000,19.448],[1530230400000,19.448],[1530316800000,19.448]], 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, 19.826450],[1527811200000, 19.826450],[1527897600000, 19.667201],[1527984000000, 19.667201],[1528070400000, 19.667201],[1528156800000, 20.032758],[1528243200000, 19.913515],[1528329600000, 20.032557],[1528416000000, 20.040628],[1528502400000, 19.824951],[1528588800000, 19.824951],[1528675200000, 19.824951],[1528761600000, 19.844952],[1528848000000, 19.832280],[1528934400000, 19.819761],[1529020800000, 19.824470],[1529107200000, 19.664585],[1529193600000, 19.664585],[1529280000000, 19.664585],[1529366400000, 19.587350],[1529452800000, 19.435057],[1529625600000, 19.376360],[1529712000000, 19.490512],[1529798400000, 19.490512],[1529884800000, 19.490512],[1529971200000, 19.453145],[1530057600000, 19.373811],[1530144000000, 19.448024],[1530230400000, 19.448024],[1530316800000, 19.448024]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });