$(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: [[1530403200000,3.98988],[1530489600000,3.98988],[1530576000000,3.93528],[1530662400000,3.95943],[1530748800000,3.98657],[1530835200000,3.98427],[1530921600000,3.95869],[1531008000000,3.95869],[1531094400000,3.95869],[1531180800000,3.96909],[1531267200000,3.94754],[1531353600000,3.92778],[1531440000000,3.93117],[1531526400000,3.91521],[1531612800000,3.91521],[1531699200000,3.91521],[1531785600000,3.92401],[1531872000000,3.91931],[1531958400000,3.91338],[1532044800000,3.90517],[1532131200000,3.8963],[1532217600000,3.8963],[1532304000000,3.8963],[1532390400000,3.89753],[1532476800000,3.91125],[1532563200000,3.93776],[1532649600000,3.92943],[1532736000000,3.91551],[1532822400000,3.91551],[1532908800000,3.91551],[1532995200000,3.92172]], 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: [[1530403200000, 3.989878],[1530403200000, 3.989878],[1530489600000, 3.989878],[1530576000000, 3.935276],[1530662400000, 3.959433],[1530748800000, 3.986569],[1530835200000, 3.984271],[1530921600000, 3.958687],[1531008000000, 3.958687],[1531094400000, 3.958687],[1531180800000, 3.969094],[1531267200000, 3.947536],[1531353600000, 3.927779],[1531440000000, 3.931172],[1531526400000, 3.915211],[1531612800000, 3.915211],[1531699200000, 3.915211],[1531785600000, 3.924011],[1531872000000, 3.919307],[1531958400000, 3.913381],[1532044800000, 3.905167],[1532131200000, 3.896301],[1532217600000, 3.896301],[1532304000000, 3.896301],[1532390400000, 3.897526],[1532476800000, 3.911248],[1532563200000, 3.937761],[1532649600000, 3.929426],[1532736000000, 3.915505],[1532822400000, 3.915505],[1532908800000, 3.915505],[1532995200000, 3.921717]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });