$(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: [[1298937600000,1.25529],[1299024000000,1.26],[1299110400000,1.25503],[1299196800000,1.25522],[1299283200000,1.25354],[1299369600000,1.25354],[1299456000000,1.25354],[1299542400000,1.25354],[1299628800000,1.25354],[1299715200000,1.25513],[1299801600000,1.24428],[1299888000000,1.2401],[1299974400000,1.2401],[1300060800000,1.2401],[1300147200000,1.25195],[1300233600000,1.22785],[1300320000000,1.2351],[1300406400000,1.23738],[1300492800000,1.26089],[1300579200000,1.26089],[1300665600000,1.26089],[1300752000000,1.26744],[1300838400000,1.2645],[1300924800000,1.25844],[1301011200000,1.25679],[1301097600000,1.24948],[1301184000000,1.24948],[1301270400000,1.24948],[1301356800000,1.2448],[1301443200000,1.24614],[1301529600000,1.25757]], 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: [[1298937600000, 1.255288],[1298937600000, 1.255288],[1299024000000, 1.259997],[1299110400000, 1.255033],[1299196800000, 1.255223],[1299283200000, 1.253539],[1299369600000, 1.253539],[1299456000000, 1.253539],[1299542400000, 1.253539],[1299628800000, 1.253539],[1299715200000, 1.255125],[1299801600000, 1.244275],[1299888000000, 1.240101],[1299974400000, 1.240101],[1300060800000, 1.240101],[1300147200000, 1.251952],[1300233600000, 1.227850],[1300320000000, 1.235098],[1300406400000, 1.237377],[1300492800000, 1.260888],[1300579200000, 1.260888],[1300665600000, 1.260888],[1300752000000, 1.267439],[1300838400000, 1.264496],[1300924800000, 1.258438],[1301011200000, 1.256793],[1301097600000, 1.249476],[1301184000000, 1.249476],[1301270400000, 1.249476],[1301356800000, 1.244801],[1301443200000, 1.246136],[1301529600000, 1.257570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });