$(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: [[1341100800000,1.13019],[1341187200000,1.13019],[1341273600000,1.15107],[1341360000000,1.1512],[1341446400000,1.15551],[1341532800000,1.15245],[1341619200000,1.14262],[1341705600000,1.14269],[1341792000000,1.14269],[1341878400000,1.13955],[1341964800000,1.14533],[1342051200000,1.14769],[1342137600000,1.13438],[1342224000000,1.13585],[1342310400000,1.13585],[1342396800000,1.13585],[1342483200000,1.12932],[1342569600000,1.14081],[1342656000000,1.15142],[1342742400000,1.1548],[1342828800000,1.15347],[1342915200000,1.15347],[1343001600000,1.15347],[1343088000000,1.14492],[1343174400000,1.14739],[1343260800000,1.14653],[1343347200000,1.15963],[1343433600000,1.15812],[1343520000000,1.15812],[1343606400000,1.15812],[1343692800000,1.17241]], 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: [[1341100800000, 1.130192],[1341100800000, 1.130192],[1341187200000, 1.130192],[1341273600000, 1.151070],[1341360000000, 1.151202],[1341446400000, 1.155507],[1341532800000, 1.152451],[1341619200000, 1.142617],[1341705600000, 1.142688],[1341792000000, 1.142688],[1341878400000, 1.139553],[1341964800000, 1.145333],[1342051200000, 1.147688],[1342137600000, 1.134379],[1342224000000, 1.135851],[1342310400000, 1.135851],[1342396800000, 1.135851],[1342483200000, 1.129324],[1342569600000, 1.140809],[1342656000000, 1.151417],[1342742400000, 1.154800],[1342828800000, 1.153473],[1342915200000, 1.153473],[1343001600000, 1.153473],[1343088000000, 1.144924],[1343174400000, 1.147389],[1343260800000, 1.146528],[1343347200000, 1.159626],[1343433600000, 1.158124],[1343520000000, 1.158124],[1343606400000, 1.158124],[1343692800000, 1.172411]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });