$(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: [[1448928000000,2.75168],[1449014400000,2.74344],[1449100800000,2.7238],[1449187200000,2.67079],[1449273600000,2.78048],[1449360000000,2.78048],[1449446400000,2.78048],[1449532800000,2.74958],[1449619200000,2.70156],[1449705600000,2.70549],[1449792000000,2.75676],[1449878400000,2.80912],[1449964800000,2.80912],[1450051200000,2.80912],[1450137600000,2.79315],[1450224000000,2.77478],[1450310400000,2.76517],[1450396800000,2.73731],[1450483200000,2.7536],[1450569600000,2.7536],[1450656000000,2.7536],[1450742400000,2.75091],[1450828800000,2.73704],[1450915200000,2.72601],[1451001600000,2.7355],[1451088000000,2.7561],[1451174400000,2.7561],[1451260800000,2.7561],[1451347200000,2.84094],[1451433600000,2.84552],[1451520000000,2.85412]], 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: [[1448928000000, 2.751676],[1448928000000, 2.751676],[1449014400000, 2.743444],[1449100800000, 2.723803],[1449187200000, 2.670793],[1449273600000, 2.780481],[1449360000000, 2.780481],[1449446400000, 2.780481],[1449532800000, 2.749583],[1449619200000, 2.701558],[1449705600000, 2.705491],[1449792000000, 2.756757],[1449878400000, 2.809122],[1449964800000, 2.809122],[1450051200000, 2.809122],[1450137600000, 2.793154],[1450224000000, 2.774779],[1450310400000, 2.765173],[1450396800000, 2.737308],[1450483200000, 2.753604],[1450569600000, 2.753604],[1450656000000, 2.753604],[1450742400000, 2.750913],[1450828800000, 2.737035],[1450915200000, 2.726012],[1451001600000, 2.735497],[1451088000000, 2.756105],[1451174400000, 2.756105],[1451260800000, 2.756105],[1451347200000, 2.840944],[1451433600000, 2.845523],[1451520000000, 2.854125]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });