$(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: [[1454284800000,3.8861],[1454371200000,3.86817],[1454457600000,3.93203],[1454544000000,3.90679],[1454630400000,3.93743],[1454716800000,3.9427],[1454803200000,3.9427],[1454889600000,3.9427],[1454976000000,3.93541],[1455062400000,3.94341],[1455148800000,3.94584],[1455235200000,3.96787],[1455321600000,3.97782],[1455408000000,3.97782],[1455494400000,3.97782],[1455580800000,4.1295],[1455667200000,4.14763],[1455753600000,4.09431],[1455840000000,4.06007],[1455926400000,4.11716],[1456012800000,4.11716],[1456099200000,4.11716],[1456185600000,4.14221],[1456272000000,4.17226],[1456358400000,4.16313],[1456444800000,4.1717],[1456531200000,4.13821],[1456617600000,4.13821],[1456704000000,4.13821]], 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: [[1454284800000, 3.886101],[1454284800000, 3.886101],[1454371200000, 3.868168],[1454457600000, 3.932031],[1454544000000, 3.906785],[1454630400000, 3.937432],[1454716800000, 3.942700],[1454803200000, 3.942700],[1454889600000, 3.942700],[1454976000000, 3.935406],[1455062400000, 3.943412],[1455148800000, 3.945841],[1455235200000, 3.967870],[1455321600000, 3.977822],[1455408000000, 3.977822],[1455494400000, 3.977822],[1455580800000, 4.129495],[1455667200000, 4.147634],[1455753600000, 4.094314],[1455840000000, 4.060070],[1455926400000, 4.117156],[1456012800000, 4.117156],[1456099200000, 4.117156],[1456185600000, 4.142207],[1456272000000, 4.172263],[1456358400000, 4.163130],[1456444800000, 4.171699],[1456531200000, 4.138208],[1456617600000, 4.138208],[1456704000000, 4.138208]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });