$(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: [[1472688000000,3.90705],[1472774400000,3.9846],[1472860800000,3.98773],[1472947200000,3.98773],[1473033600000,3.98773],[1473120000000,4.01144],[1473206400000,4.02015],[1473292800000,4.01065],[1473379200000,3.99841],[1473465600000,3.99294],[1473552000000,3.99294],[1473638400000,3.99294],[1473724800000,3.98635],[1473811200000,3.95556],[1473897600000,3.94384],[1473984000000,3.92706],[1474070400000,3.88127],[1474156800000,3.88127],[1474243200000,3.88127],[1474329600000,3.86321],[1474416000000,3.86855],[1474502400000,3.89354],[1474588800000,3.88692],[1474675200000,3.89667],[1474761600000,3.89667],[1474848000000,3.89667],[1474934400000,3.88394],[1475020800000,3.87308],[1475107200000,3.88047],[1475193600000,3.88609]], 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: [[1472688000000, 3.907046],[1472688000000, 3.907046],[1472774400000, 3.984597],[1472860800000, 3.987732],[1472947200000, 3.987732],[1473033600000, 3.987732],[1473120000000, 4.011442],[1473206400000, 4.020154],[1473292800000, 4.010645],[1473379200000, 3.998414],[1473465600000, 3.992941],[1473552000000, 3.992941],[1473638400000, 3.992941],[1473724800000, 3.986351],[1473811200000, 3.955562],[1473897600000, 3.943836],[1473984000000, 3.927064],[1474070400000, 3.881273],[1474156800000, 3.881273],[1474243200000, 3.881273],[1474329600000, 3.863206],[1474416000000, 3.868546],[1474502400000, 3.893539],[1474588800000, 3.886920],[1474675200000, 3.896665],[1474761600000, 3.896665],[1474848000000, 3.896665],[1474934400000, 3.883935],[1475020800000, 3.873075],[1475107200000, 3.880469],[1475193600000, 3.886089]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });