$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1246406400000,12.6735],[1246492800000,12.5772],[1246579200000,12.5174],[1246665600000,12.4959],[1246752000000,12.4959],[1246838400000,12.4959],[1246924800000,12.3248],[1247011200000,12.3831],[1247097600000,12.2537],[1247184000000,12.391],[1247270400000,12.3528],[1247356800000,12.3528],[1247443200000,12.3528],[1247529600000,12.2783],[1247616000000,12.4425],[1247702400000,12.5367],[1247788800000,12.5667],[1247875200000,12.4592],[1247961600000,12.4592],[1248048000000,12.4592],[1248134400000,12.6652],[1248220800000,12.5915],[1248307200000,12.575],[1248393600000,12.6537],[1248480000000,12.5797],[1248566400000,12.5797],[1248652800000,12.5797],[1248739200000,12.6835],[1248825600000,12.6911],[1248912000000,12.6119],[1248998400000,12.6912]], 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, 12.673492],[1246406400000, 12.673492],[1246492800000, 12.577247],[1246579200000, 12.517425],[1246665600000, 12.495946],[1246752000000, 12.495946],[1246838400000, 12.495946],[1246924800000, 12.324793],[1247011200000, 12.383071],[1247097600000, 12.253676],[1247184000000, 12.391050],[1247270400000, 12.352772],[1247356800000, 12.352772],[1247443200000, 12.352772],[1247529600000, 12.278289],[1247616000000, 12.442535],[1247702400000, 12.536680],[1247788800000, 12.566670],[1247875200000, 12.459221],[1247961600000, 12.459221],[1248048000000, 12.459221],[1248134400000, 12.665213],[1248220800000, 12.591456],[1248307200000, 12.574985],[1248393600000, 12.653688],[1248480000000, 12.579655],[1248566400000, 12.579655],[1248652800000, 12.579655],[1248739200000, 12.683464],[1248825600000, 12.691073],[1248912000000, 12.611869],[1248998400000, 12.691224]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });