$(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: [[1491004800000,3.92289],[1491091200000,3.92289],[1491177600000,3.92289],[1491264000000,3.92397],[1491350400000,3.93676],[1491436800000,3.93795],[1491523200000,3.92857],[1491609600000,3.91082],[1491696000000,3.91082],[1491782400000,3.91082],[1491868800000,3.90156],[1491955200000,3.89735],[1492041600000,3.89953],[1492128000000,3.89974],[1492214400000,3.89217],[1492300800000,3.89217],[1492387200000,3.89217],[1492473600000,3.89217],[1492560000000,3.90019],[1492646400000,3.8901],[1492732800000,3.88699],[1492819200000,3.88221],[1492905600000,3.88221],[1492992000000,3.88221],[1493078400000,3.87405],[1493164800000,3.86854],[1493251200000,3.85863],[1493337600000,3.85085],[1493424000000,3.85196],[1493510400000,3.85196]], 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: [[1491004800000, 3.922890],[1491004800000, 3.922890],[1491091200000, 3.922890],[1491177600000, 3.922890],[1491264000000, 3.923970],[1491350400000, 3.936759],[1491436800000, 3.937947],[1491523200000, 3.928566],[1491609600000, 3.910821],[1491696000000, 3.910821],[1491782400000, 3.910821],[1491868800000, 3.901561],[1491955200000, 3.897352],[1492041600000, 3.899528],[1492128000000, 3.899744],[1492214400000, 3.892173],[1492300800000, 3.892173],[1492387200000, 3.892173],[1492473600000, 3.892173],[1492560000000, 3.900194],[1492646400000, 3.890097],[1492732800000, 3.886989],[1492819200000, 3.882215],[1492905600000, 3.882215],[1492992000000, 3.882215],[1493078400000, 3.874045],[1493164800000, 3.868535],[1493251200000, 3.858630],[1493337600000, 3.850853],[1493424000000, 3.851964],[1493510400000, 3.851964]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });