$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1143849600000,3.86844],[1143936000000,3.86844],[1144022400000,3.86844],[1144108800000,3.85509],[1144195200000,3.90381],[1144281600000,3.92142],[1144368000000,3.93691],[1144454400000,3.90328],[1144540800000,3.90328],[1144627200000,3.90328],[1144713600000,3.87789],[1144800000000,3.87489],[1144886400000,3.89338],[1144972800000,3.88887],[1145059200000,3.88887],[1145145600000,3.88887],[1145232000000,3.88887],[1145318400000,3.88887],[1145404800000,3.95478],[1145491200000,3.9742],[1145577600000,3.96536],[1145664000000,3.94737],[1145750400000,3.94737],[1145836800000,3.94737],[1145923200000,3.94737],[1146009600000,3.98819],[1146096000000,3.97732],[1146182400000,3.96425],[1146268800000,4.02927],[1146355200000,4.02927]], 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: [[1143849600000, 3.868439],[1143849600000, 3.868439],[1143936000000, 3.868439],[1144022400000, 3.868439],[1144108800000, 3.855091],[1144195200000, 3.903812],[1144281600000, 3.921417],[1144368000000, 3.936909],[1144454400000, 3.903278],[1144540800000, 3.903278],[1144627200000, 3.903278],[1144713600000, 3.877885],[1144800000000, 3.874889],[1144886400000, 3.893384],[1144972800000, 3.888870],[1145059200000, 3.888870],[1145145600000, 3.888870],[1145232000000, 3.888870],[1145318400000, 3.888870],[1145404800000, 3.954784],[1145491200000, 3.974203],[1145577600000, 3.965356],[1145664000000, 3.947366],[1145750400000, 3.947366],[1145836800000, 3.947366],[1145923200000, 3.947366],[1146009600000, 3.988194],[1146096000000, 3.977323],[1146182400000, 3.964253],[1146268800000, 4.029266],[1146355200000, 4.029266]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });