$(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: [[1270080000000,1.09972],[1270166400000,1.09709],[1270252800000,1.09709],[1270339200000,1.09709],[1270425600000,1.09709],[1270512000000,1.09709],[1270598400000,1.09866],[1270684800000,1.09254],[1270771200000,1.08889],[1270857600000,1.09436],[1270944000000,1.09436],[1271030400000,1.09436],[1271116800000,1.10488],[1271203200000,1.10339],[1271289600000,1.1088],[1271376000000,1.10588],[1271462400000,1.10742],[1271548800000,1.10742],[1271635200000,1.10742],[1271721600000,1.09776],[1271808000000,1.10819],[1271894400000,1.10464],[1271980800000,1.09953],[1272067200000,1.09999],[1272153600000,1.09999],[1272240000000,1.09999],[1272326400000,1.10351],[1272412800000,1.09988],[1272499200000,1.0906],[1272585600000,1.0914]], 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: [[1270080000000, 1.099718],[1270080000000, 1.099718],[1270166400000, 1.097092],[1270252800000, 1.097092],[1270339200000, 1.097092],[1270425600000, 1.097092],[1270512000000, 1.097092],[1270598400000, 1.098658],[1270684800000, 1.092541],[1270771200000, 1.088889],[1270857600000, 1.094359],[1270944000000, 1.094359],[1271030400000, 1.094359],[1271116800000, 1.104879],[1271203200000, 1.103386],[1271289600000, 1.108804],[1271376000000, 1.105884],[1271462400000, 1.107419],[1271548800000, 1.107419],[1271635200000, 1.107419],[1271721600000, 1.097759],[1271808000000, 1.108187],[1271894400000, 1.104638],[1271980800000, 1.099532],[1272067200000, 1.099993],[1272153600000, 1.099993],[1272240000000, 1.099993],[1272326400000, 1.103507],[1272412800000, 1.099877],[1272499200000, 1.090596],[1272585600000, 1.091399]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });