$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1285891200000,7.67112],[1285977600000,7.70829],[1286064000000,7.70829],[1286150400000,7.70829],[1286236800000,7.74433],[1286323200000,7.74687],[1286409600000,7.81849],[1286496000000,7.82587],[1286582400000,7.74576],[1286668800000,7.74576],[1286755200000,7.74576],[1286841600000,7.8179],[1286928000000,7.80273],[1287014400000,7.88673],[1287100800000,7.9161],[1287187200000,7.86657],[1287273600000,7.86657],[1287360000000,7.86657],[1287446400000,7.74659],[1287532800000,7.71238],[1287619200000,7.69023],[1287705600000,7.75448],[1287792000000,7.70984],[1287878400000,7.70984],[1287964800000,7.70984],[1288051200000,7.76766],[1288137600000,7.72665],[1288224000000,7.685],[1288310400000,7.72321],[1288396800000,7.74719],[1288483200000,7.74719]], 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, 7.671121],[1285891200000, 7.671121],[1285977600000, 7.708292],[1286064000000, 7.708292],[1286150400000, 7.708292],[1286236800000, 7.744333],[1286323200000, 7.746867],[1286409600000, 7.818489],[1286496000000, 7.825871],[1286582400000, 7.745762],[1286668800000, 7.745762],[1286755200000, 7.745762],[1286841600000, 7.817898],[1286928000000, 7.802727],[1287014400000, 7.886734],[1287100800000, 7.916098],[1287187200000, 7.866566],[1287273600000, 7.866566],[1287360000000, 7.866566],[1287446400000, 7.746589],[1287532800000, 7.712377],[1287619200000, 7.690231],[1287705600000, 7.754475],[1287792000000, 7.709841],[1287878400000, 7.709841],[1287964800000, 7.709841],[1288051200000, 7.767662],[1288137600000, 7.726654],[1288224000000, 7.684998],[1288310400000, 7.723215],[1288396800000, 7.747189],[1288483200000, 7.747189]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });