$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1501545600000,0.099534],[1501632000000,0.100601],[1501718400000,0.100843],[1501804800000,0.101075],[1501891200000,0.10077],[1501977600000,0.10077],[1502064000000,0.10077],[1502150400000,0.100127],[1502236800000,0.099841],[1502323200000,0.099072],[1502409600000,0.098707],[1502496000000,0.098985],[1502582400000,0.098985],[1502668800000,0.098985],[1502755200000,0.099332],[1502841600000,0.098841],[1502928000000,0.098489],[1503014400000,0.098125],[1503100800000,0.098583],[1503187200000,0.098583],[1503273600000,0.098583],[1503360000000,null],[1503446400000,0.098647],[1503532800000,0.099361],[1503619200000,0.099361],[1503705600000,0.099361],[1503792000000,0.099361],[1503878400000,0.099361],[1503964800000,0.100087],[1504051200000,0.100389],[1504137600000,0.099714]], 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: [[1501545600000, 0.099534],[1501545600000, 0.099534],[1501632000000, 0.100601],[1501718400000, 0.100843],[1501804800000, 0.101075],[1501891200000, 0.100770],[1501977600000, 0.100770],[1502064000000, 0.100770],[1502150400000, 0.100127],[1502236800000, 0.099841],[1502323200000, 0.099072],[1502409600000, 0.098707],[1502496000000, 0.098985],[1502582400000, 0.098985],[1502668800000, 0.098985],[1502755200000, 0.099332],[1502841600000, 0.098841],[1502928000000, 0.098489],[1503014400000, 0.098125],[1503100800000, 0.098583],[1503187200000, 0.098583],[1503273600000, 0.098583],[1503446400000, 0.098647],[1503532800000, 0.099361],[1503619200000, 0.099361],[1503705600000, 0.099361],[1503792000000, 0.099361],[1503878400000, 0.099361],[1503964800000, 0.100087],[1504051200000, 0.100389],[1504137600000, 0.099714]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });