$(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: [[1430438400000,3.40674],[1430524800000,3.40674],[1430611200000,3.40674],[1430697600000,3.40674],[1430784000000,3.40674],[1430870400000,3.40734],[1430956800000,3.39101],[1431043200000,3.34052],[1431129600000,3.31766],[1431216000000,3.31766],[1431302400000,3.31766],[1431388800000,3.31766],[1431475200000,3.32195],[1431561600000,3.3154],[1431648000000,3.31697],[1431734400000,3.33632],[1431820800000,3.33632],[1431907200000,3.33632],[1431993600000,3.56504],[1432080000000,3.42448],[1432166400000,3.35482],[1432252800000,3.33745],[1432339200000,3.36189],[1432425600000,3.36189],[1432512000000,3.36189],[1432598400000,3.40693],[1432684800000,3.45317],[1432771200000,null],[1432857600000,3.39423],[1432944000000,3.40179],[1433030400000,3.40179]], 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: [[1430438400000, 3.406736],[1430438400000, 3.406736],[1430524800000, 3.406736],[1430611200000, 3.406736],[1430697600000, 3.406736],[1430784000000, 3.406736],[1430870400000, 3.407342],[1430956800000, 3.391015],[1431043200000, 3.340521],[1431129600000, 3.317665],[1431216000000, 3.317665],[1431302400000, 3.317665],[1431388800000, 3.317665],[1431475200000, 3.321955],[1431561600000, 3.315400],[1431648000000, 3.316969],[1431734400000, 3.336317],[1431820800000, 3.336317],[1431907200000, 3.336317],[1431993600000, 3.565042],[1432080000000, 3.424476],[1432166400000, 3.354817],[1432252800000, 3.337451],[1432339200000, 3.361890],[1432425600000, 3.361890],[1432512000000, 3.361890],[1432598400000, 3.406935],[1432684800000, 3.453166],[1432857600000, 3.394232],[1432944000000, 3.401789],[1433030400000, 3.401789]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });