$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1527811200000,30.5605],[1527897600000,30.4724],[1527984000000,30.4724],[1528070400000,30.4724],[1528156800000,30.6722],[1528243200000,30.5374],[1528329600000,30.78],[1528416000000,30.9768],[1528502400000,30.7207],[1528588800000,30.7207],[1528675200000,30.7207],[1528761600000,30.7617],[1528848000000,30.7519],[1528934400000,30.7325],[1529020800000,30.7557],[1529107200000,30.5155],[1529193600000,30.5155],[1529280000000,30.5155],[1529366400000,30.5759],[1529452800000,30.5033],[1529539200000,null],[1529625600000,30.3511],[1529712000000,30.5631],[1529798400000,30.5631],[1529884800000,30.5631],[1529971200000,30.6231],[1530057600000,30.568],[1530144000000,30.582],[1530230400000,30.582],[1530316800000,30.582]], 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, 30.560490],[1527811200000, 30.560490],[1527897600000, 30.472361],[1527984000000, 30.472361],[1528070400000, 30.472361],[1528156800000, 30.672155],[1528243200000, 30.537375],[1528329600000, 30.780024],[1528416000000, 30.976799],[1528502400000, 30.720743],[1528588800000, 30.720743],[1528675200000, 30.720743],[1528761600000, 30.761660],[1528848000000, 30.751933],[1528934400000, 30.732521],[1529020800000, 30.755682],[1529107200000, 30.515504],[1529193600000, 30.515504],[1529280000000, 30.515504],[1529366400000, 30.575853],[1529452800000, 30.503323],[1529625600000, 30.351130],[1529712000000, 30.563072],[1529798400000, 30.563072],[1529884800000, 30.563072],[1529971200000, 30.623141],[1530057600000, 30.567999],[1530144000000, 30.582017],[1530230400000, 30.582017],[1530316800000, 30.582017]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });