$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1246406400000,1.11855],[1246492800000,1.11802],[1246579200000,1.11814],[1246665600000,1.11788],[1246752000000,1.11788],[1246838400000,1.11788],[1246924800000,1.11752],[1247011200000,1.11668],[1247097600000,1.11585],[1247184000000,1.11574],[1247270400000,1.11585],[1247356800000,1.11585],[1247443200000,1.11585],[1247529600000,1.11587],[1247616000000,1.11613],[1247702400000,1.11703],[1247788800000,1.11846],[1247875200000,1.12],[1247961600000,1.12],[1248048000000,1.12],[1248134400000,1.12166],[1248220800000,1.12147],[1248307200000,1.12189],[1248393600000,1.1218],[1248480000000,1.12225],[1248566400000,1.12225],[1248652800000,1.12225],[1248739200000,1.12597],[1248825600000,1.12578],[1248912000000,1.12715],[1248998400000,1.12671]], 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, 1.118554],[1246406400000, 1.118554],[1246492800000, 1.118018],[1246579200000, 1.118135],[1246665600000, 1.117878],[1246752000000, 1.117878],[1246838400000, 1.117878],[1246924800000, 1.117522],[1247011200000, 1.116684],[1247097600000, 1.115853],[1247184000000, 1.115745],[1247270400000, 1.115850],[1247356800000, 1.115850],[1247443200000, 1.115850],[1247529600000, 1.115869],[1247616000000, 1.116131],[1247702400000, 1.117034],[1247788800000, 1.118458],[1247875200000, 1.119995],[1247961600000, 1.119995],[1248048000000, 1.119995],[1248134400000, 1.121661],[1248220800000, 1.121467],[1248307200000, 1.121893],[1248393600000, 1.121801],[1248480000000, 1.122247],[1248566400000, 1.122247],[1248652800000, 1.122247],[1248739200000, 1.125965],[1248825600000, 1.125780],[1248912000000, 1.127149],[1248998400000, 1.126711]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });