$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1246406400000,10.7991],[1246492800000,10.7686],[1246579200000,10.7312],[1246665600000,10.6997],[1246752000000,10.6997],[1246838400000,10.6997],[1246924800000,10.6141],[1247011200000,10.6965],[1247097600000,10.5988],[1247184000000,10.6637],[1247270400000,10.5987],[1247356800000,10.5987],[1247443200000,10.5987],[1247529600000,10.6551],[1247616000000,10.6701],[1247702400000,10.7515],[1247788800000,10.796],[1247875200000,10.781],[1247961600000,10.781],[1248048000000,10.781],[1248134400000,10.8933],[1248220800000,10.8954],[1248307200000,10.8748],[1248393600000,10.9037],[1248480000000,10.9066],[1248566400000,10.9066],[1248652800000,10.9066],[1248739200000,10.975],[1248825600000,10.9422],[1248912000000,10.8601],[1248998400000,10.818]], 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, 10.799083],[1246406400000, 10.799083],[1246492800000, 10.768639],[1246579200000, 10.731188],[1246665600000, 10.699654],[1246752000000, 10.699654],[1246838400000, 10.699654],[1246924800000, 10.614112],[1247011200000, 10.696497],[1247097600000, 10.598817],[1247184000000, 10.663738],[1247270400000, 10.598678],[1247356800000, 10.598678],[1247443200000, 10.598678],[1247529600000, 10.655099],[1247616000000, 10.670096],[1247702400000, 10.751457],[1247788800000, 10.796027],[1247875200000, 10.780964],[1247961600000, 10.780964],[1248048000000, 10.780964],[1248134400000, 10.893350],[1248220800000, 10.895387],[1248307200000, 10.874847],[1248393600000, 10.903683],[1248480000000, 10.906560],[1248566400000, 10.906560],[1248652800000, 10.906560],[1248739200000, 10.975001],[1248825600000, 10.942243],[1248912000000, 10.860080],[1248998400000, 10.817999]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });