$(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: [[1246406400000,6.63538],[1246492800000,6.63748],[1246579200000,6.62378],[1246665600000,6.6035],[1246752000000,6.6035],[1246838400000,6.6035],[1246924800000,6.55475],[1247011200000,6.59342],[1247097600000,6.54006],[1247184000000,6.58988],[1247270400000,6.53755],[1247356800000,6.53755],[1247443200000,6.53755],[1247529600000,6.56143],[1247616000000,6.66132],[1247702400000,6.79913],[1247788800000,6.83856],[1247875200000,6.85202],[1247961600000,6.85202],[1248048000000,6.85202],[1248134400000,6.93756],[1248220800000,6.9446],[1248307200000,6.92489],[1248393600000,6.98685],[1248480000000,7.07896],[1248566400000,7.07896],[1248652800000,7.07896],[1248739200000,7.11139],[1248825600000,7.11552],[1248912000000,7.08189],[1248998400000,7.09842]], 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, 6.635381],[1246406400000, 6.635381],[1246492800000, 6.637475],[1246579200000, 6.623781],[1246665600000, 6.603502],[1246752000000, 6.603502],[1246838400000, 6.603502],[1246924800000, 6.554753],[1247011200000, 6.593415],[1247097600000, 6.540058],[1247184000000, 6.589876],[1247270400000, 6.537551],[1247356800000, 6.537551],[1247443200000, 6.537551],[1247529600000, 6.561426],[1247616000000, 6.661316],[1247702400000, 6.799125],[1247788800000, 6.838555],[1247875200000, 6.852017],[1247961600000, 6.852017],[1248048000000, 6.852017],[1248134400000, 6.937556],[1248220800000, 6.944603],[1248307200000, 6.924890],[1248393600000, 6.986853],[1248480000000, 7.078964],[1248566400000, 7.078964],[1248652800000, 7.078964],[1248739200000, 7.111386],[1248825600000, 7.115518],[1248912000000, 7.081891],[1248998400000, 7.098425]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });