$(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: [[1425168000000,4.43584],[1425254400000,4.43584],[1425340800000,4.28297],[1425427200000,3.95511],[1425513600000,3.79021],[1425600000000,3.68342],[1425686400000,3.65293],[1425772800000,3.65293],[1425859200000,3.65293],[1425945600000,3.65293],[1426032000000,3.46959],[1426118400000,3.44214],[1426204800000,3.44173],[1426291200000,3.45197],[1426377600000,3.45197],[1426464000000,3.45197],[1426550400000,3.47816],[1426636800000,3.5524],[1426723200000,3.72753],[1426809600000,3.75541],[1426896000000,3.74367],[1426982400000,3.74367],[1427068800000,3.74367],[1427155200000,3.7309],[1427241600000,3.74737],[1427328000000,3.79443],[1427414400000,3.78284],[1427500800000,3.78456],[1427587200000,3.78456],[1427673600000,3.78456],[1427760000000,3.7715]], 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: [[1425168000000, 4.435843],[1425168000000, 4.435843],[1425254400000, 4.435843],[1425340800000, 4.282971],[1425427200000, 3.955114],[1425513600000, 3.790207],[1425600000000, 3.683417],[1425686400000, 3.652927],[1425772800000, 3.652927],[1425859200000, 3.652927],[1425945600000, 3.652927],[1426032000000, 3.469586],[1426118400000, 3.442136],[1426204800000, 3.441731],[1426291200000, 3.451973],[1426377600000, 3.451973],[1426464000000, 3.451973],[1426550400000, 3.478155],[1426636800000, 3.552405],[1426723200000, 3.727528],[1426809600000, 3.755413],[1426896000000, 3.743668],[1426982400000, 3.743668],[1427068800000, 3.743668],[1427155200000, 3.730902],[1427241600000, 3.747374],[1427328000000, 3.794433],[1427414400000, 3.782842],[1427500800000, 3.784557],[1427587200000, 3.784557],[1427673600000, 3.784557],[1427760000000, 3.771498]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });