$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1285891200000,15.2179],[1285977600000,15.309],[1286064000000,15.309],[1286150400000,15.309],[1286236800000,15.2856],[1286323200000,15.3692],[1286409600000,15.4562],[1286496000000,15.5855],[1286582400000,15.4762],[1286668800000,15.4762],[1286755200000,15.4762],[1286841600000,15.5476],[1286928000000,15.4305],[1287014400000,15.5612],[1287100800000,15.7184],[1287187200000,15.701],[1287273600000,15.701],[1287360000000,15.701],[1287446400000,15.5019],[1287532800000,15.4454],[1287619200000,15.4563],[1287705600000,15.6226],[1287792000000,15.5337],[1287878400000,15.5337],[1287964800000,15.5337],[1288051200000,15.6459],[1288137600000,15.5088],[1288224000000,15.396],[1288310400000,15.4453],[1288396800000,15.4463],[1288483200000,15.4463]], 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: [[1285891200000, 15.217886],[1285891200000, 15.217886],[1285977600000, 15.308980],[1286064000000, 15.308980],[1286150400000, 15.308980],[1286236800000, 15.285558],[1286323200000, 15.369208],[1286409600000, 15.456152],[1286496000000, 15.585515],[1286582400000, 15.476231],[1286668800000, 15.476231],[1286755200000, 15.476231],[1286841600000, 15.547583],[1286928000000, 15.430496],[1287014400000, 15.561154],[1287100800000, 15.718392],[1287187200000, 15.700986],[1287273600000, 15.700986],[1287360000000, 15.700986],[1287446400000, 15.501917],[1287532800000, 15.445396],[1287619200000, 15.456334],[1287705600000, 15.622568],[1287792000000, 15.533750],[1287878400000, 15.533750],[1287964800000, 15.533750],[1288051200000, 15.645900],[1288137600000, 15.508832],[1288224000000, 15.395998],[1288310400000, 15.445343],[1288396800000, 15.446347],[1288483200000, 15.446347]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });