$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1527811200000,2.9762],[1527897600000,2.96012],[1527984000000,2.96012],[1528070400000,2.96012],[1528156800000,2.98998],[1528243200000,2.97931],[1528329600000,2.99533],[1528416000000,3.02169],[1528502400000,2.98637],[1528588800000,2.98637],[1528675200000,2.98637],[1528761600000,3.00026],[1528848000000,3.02826],[1528934400000,3.03202],[1529020800000,3.02713],[1529107200000,3.00016],[1529193600000,3.00016],[1529280000000,3.00016],[1529366400000,2.99109],[1529452800000,2.95498],[1529539200000,null],[1529625600000,2.93963],[1529712000000,2.96873],[1529798400000,2.96873],[1529884800000,2.96873],[1529971200000,2.95525],[1530057600000,2.95677],[1530144000000,2.9547],[1530230400000,2.9547],[1530316800000,2.9547]], 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, 2.976198],[1527811200000, 2.976198],[1527897600000, 2.960120],[1527984000000, 2.960120],[1528070400000, 2.960120],[1528156800000, 2.989984],[1528243200000, 2.979314],[1528329600000, 2.995331],[1528416000000, 3.021685],[1528502400000, 2.986366],[1528588800000, 2.986366],[1528675200000, 2.986366],[1528761600000, 3.000259],[1528848000000, 3.028255],[1528934400000, 3.032017],[1529020800000, 3.027134],[1529107200000, 3.000158],[1529193600000, 3.000158],[1529280000000, 3.000158],[1529366400000, 2.991093],[1529452800000, 2.954975],[1529625600000, 2.939634],[1529712000000, 2.968730],[1529798400000, 2.968730],[1529884800000, 2.968730],[1529971200000, 2.955246],[1530057600000, 2.956772],[1530144000000, 2.954699],[1530230400000, 2.954699],[1530316800000, 2.954699]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });