$(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: [[1509494400000,3.20916],[1509580800000,3.2],[1509667200000,3.21278],[1509753600000,3.21006],[1509840000000,3.21006],[1509926400000,3.21006],[1510012800000,3.18577],[1510099200000,3.17415],[1510185600000,3.1732],[1510272000000,3.17268],[1510358400000,3.17177],[1510444800000,3.17177],[1510531200000,3.17177],[1510617600000,3.15996],[1510704000000,3.14645],[1510790400000,3.14405],[1510876800000,3.15222],[1510963200000,3.14307],[1511049600000,3.14307],[1511136000000,3.14307],[1511222400000,3.13226],[1511308800000,3.1208],[1511395200000,3.16827],[1511481600000,3.23298],[1511568000000,3.24067],[1511654400000,3.24067],[1511740800000,3.24067],[1511827200000,3.23126],[1511913600000,3.22484],[1512000000000,3.22233]], 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: [[1509494400000, 3.209159],[1509494400000, 3.209159],[1509580800000, 3.200000],[1509667200000, 3.212784],[1509753600000, 3.210062],[1509840000000, 3.210062],[1509926400000, 3.210062],[1510012800000, 3.185770],[1510099200000, 3.174147],[1510185600000, 3.173198],[1510272000000, 3.172680],[1510358400000, 3.171774],[1510444800000, 3.171774],[1510531200000, 3.171774],[1510617600000, 3.159957],[1510704000000, 3.146453],[1510790400000, 3.144047],[1510876800000, 3.152221],[1510963200000, 3.143074],[1511049600000, 3.143074],[1511136000000, 3.143074],[1511222400000, 3.132264],[1511308800000, 3.120804],[1511395200000, 3.168271],[1511481600000, 3.232978],[1511568000000, 3.240672],[1511654400000, 3.240672],[1511740800000, 3.240672],[1511827200000, 3.231263],[1511913600000, 3.224836],[1512000000000, 3.222327]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });