$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1527811200000,26.1223],[1527897600000,26.1139],[1527984000000,26.1139],[1528070400000,26.1139],[1528156800000,26.1329],[1528243200000,26.1562],[1528329600000,26.1624],[1528416000000,26.1717],[1528502400000,26.1364],[1528588800000,26.1364],[1528675200000,26.1364],[1528761600000,26.0913],[1528848000000,26.0875],[1528934400000,26.1242],[1529020800000,26.2197],[1529107200000,26.3155],[1529193600000,26.3155],[1529280000000,26.3155],[1529366400000,26.329],[1529452800000,26.4464],[1529539200000,null],[1529625600000,26.3054],[1529712000000,26.2389],[1529798400000,26.2389],[1529884800000,26.2389],[1529971200000,26.1736],[1530057600000,26.1892],[1530144000000,26.3275],[1530230400000,26.3275],[1530316800000,26.3275]], 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, 26.122310],[1527811200000, 26.122310],[1527897600000, 26.113944],[1527984000000, 26.113944],[1528070400000, 26.113944],[1528156800000, 26.132875],[1528243200000, 26.156210],[1528329600000, 26.162366],[1528416000000, 26.171679],[1528502400000, 26.136416],[1528588800000, 26.136416],[1528675200000, 26.136416],[1528761600000, 26.091315],[1528848000000, 26.087490],[1528934400000, 26.124210],[1529020800000, 26.219678],[1529107200000, 26.315543],[1529193600000, 26.315543],[1529280000000, 26.315543],[1529366400000, 26.328987],[1529452800000, 26.446439],[1529625600000, 26.305365],[1529712000000, 26.238901],[1529798400000, 26.238901],[1529884800000, 26.238901],[1529971200000, 26.173625],[1530057600000, 26.189170],[1530144000000, 26.327494],[1530230400000, 26.327494],[1530316800000, 26.327494]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });