$(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: [[1535760000000,3.09868],[1535846400000,3.09868],[1535932800000,3.09868],[1536019200000,3.11366],[1536105600000,3.11833],[1536192000000,3.1218],[1536278400000,3.10048],[1536364800000,3.1218],[1536451200000,3.1218],[1536537600000,3.1218],[1536624000000,3.11713],[1536710400000,3.10137],[1536796800000,3.09989],[1536883200000,3.12879],[1536969600000,3.12033],[1537056000000,3.12033],[1537142400000,3.12033],[1537228800000,3.1405],[1537315200000,3.16074],[1537401600000,3.1583],[1537488000000,3.19555],[1537574400000,3.19403],[1537660800000,3.19403],[1537747200000,3.19403],[1537833600000,3.19566],[1537920000000,3.19255],[1538006400000,3.18334],[1538092800000,3.2099],[1538179200000,3.17444],[1538265600000,3.17444]], 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: [[1535760000000, 3.098682],[1535760000000, 3.098682],[1535846400000, 3.098682],[1535932800000, 3.098682],[1536019200000, 3.113658],[1536105600000, 3.118330],[1536192000000, 3.121799],[1536278400000, 3.100477],[1536364800000, 3.121799],[1536451200000, 3.121799],[1536537600000, 3.121799],[1536624000000, 3.117127],[1536710400000, 3.101370],[1536796800000, 3.099889],[1536883200000, 3.128794],[1536969600000, 3.120326],[1537056000000, 3.120326],[1537142400000, 3.120326],[1537228800000, 3.140503],[1537315200000, 3.160736],[1537401600000, 3.158305],[1537488000000, 3.195548],[1537574400000, 3.194032],[1537660800000, 3.194032],[1537747200000, 3.194032],[1537833600000, 3.195658],[1537920000000, 3.192550],[1538006400000, 3.183337],[1538092800000, 3.209904],[1538179200000, 3.174437],[1538265600000, 3.174437]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });