$(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: [[1493596800000,3.85196],[1493683200000,3.85196],[1493769600000,3.85196],[1493856000000,3.84776],[1493942400000,3.84088],[1494028800000,3.84071],[1494115200000,3.84071],[1494201600000,3.84071],[1494288000000,3.84071],[1494374400000,3.84071],[1494460800000,3.83264],[1494547200000,3.8291],[1494633600000,3.83672],[1494720000000,3.83672],[1494806400000,3.83672],[1494892800000,3.84046],[1494979200000,3.83707],[1495065600000,3.83638],[1495152000000,3.82973],[1495238400000,3.82765],[1495324800000,3.82765],[1495411200000,3.82765],[1495497600000,3.82357],[1495584000000,3.8175],[1495670400000,3.81225],[1495756800000,3.82594],[1495843200000,3.84156],[1495929600000,3.84156],[1496016000000,3.84156],[1496102400000,3.84841],[1496188800000,3.84401]], 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: [[1493596800000, 3.851964],[1493596800000, 3.851964],[1493683200000, 3.851964],[1493769600000, 3.851964],[1493856000000, 3.847759],[1493942400000, 3.840877],[1494028800000, 3.840710],[1494115200000, 3.840710],[1494201600000, 3.840710],[1494288000000, 3.840710],[1494374400000, 3.840710],[1494460800000, 3.832641],[1494547200000, 3.829104],[1494633600000, 3.836724],[1494720000000, 3.836724],[1494806400000, 3.836724],[1494892800000, 3.840461],[1494979200000, 3.837067],[1495065600000, 3.836382],[1495152000000, 3.829730],[1495238400000, 3.827649],[1495324800000, 3.827649],[1495411200000, 3.827649],[1495497600000, 3.823569],[1495584000000, 3.817501],[1495670400000, 3.812247],[1495756800000, 3.825944],[1495843200000, 3.841561],[1495929600000, 3.841561],[1496016000000, 3.841561],[1496102400000, 3.848406],[1496188800000, 3.844009]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });