$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1246406400000,1.1975],[1246492800000,1.19918],[1246579200000,1.20069],[1246665600000,1.19336],[1246752000000,1.19336],[1246838400000,1.19336],[1246924800000,1.17231],[1247011200000,1.18108],[1247097600000,1.16766],[1247184000000,1.1752],[1247270400000,1.16674],[1247356800000,1.16674],[1247443200000,1.16674],[1247529600000,1.17476],[1247616000000,1.18091],[1247702400000,1.19209],[1247788800000,1.19936],[1247875200000,1.19842],[1247961600000,1.19842],[1248048000000,1.19842],[1248134400000,1.20923],[1248220800000,1.21716],[1248307200000,1.21915],[1248393600000,1.2217],[1248480000000,1.23099],[1248566400000,1.23099],[1248652800000,1.23099],[1248739200000,1.24702],[1248825600000,1.24826],[1248912000000,1.23565],[1248998400000,1.23648]], 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: [[1246406400000, 1.197503],[1246406400000, 1.197503],[1246492800000, 1.199180],[1246579200000, 1.200692],[1246665600000, 1.193359],[1246752000000, 1.193359],[1246838400000, 1.193359],[1246924800000, 1.172312],[1247011200000, 1.181085],[1247097600000, 1.167656],[1247184000000, 1.175197],[1247270400000, 1.166741],[1247356800000, 1.166741],[1247443200000, 1.166741],[1247529600000, 1.174763],[1247616000000, 1.180908],[1247702400000, 1.192090],[1247788800000, 1.199359],[1247875200000, 1.198417],[1247961600000, 1.198417],[1248048000000, 1.198417],[1248134400000, 1.209230],[1248220800000, 1.217158],[1248307200000, 1.219153],[1248393600000, 1.221701],[1248480000000, 1.230989],[1248566400000, 1.230989],[1248652800000, 1.230989],[1248739200000, 1.247018],[1248825600000, 1.248260],[1248912000000, 1.235645],[1248998400000, 1.236484]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });