$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1477958400000,0.40361],[1478044800000,null],[1478131200000,0.40303],[1478217600000,0.40304],[1478304000000,0.40275],[1478390400000,0.40275],[1478476800000,0.40275],[1478563200000,0.40012],[1478649600000,0.40108],[1478736000000,0.40008],[1478822400000,0.40337],[1478908800000,0.393],[1478995200000,0.393],[1479081600000,0.393],[1479168000000,0.391],[1479254400000,0.39679],[1479340800000,0.40817],[1479427200000,0.40134],[1479513600000,0.39776],[1479600000000,0.39776],[1479686400000,0.39776],[1479772800000,0.40063],[1479859200000,0.40326],[1479945600000,0.39975],[1480032000000,0.39593],[1480118400000,0.3981],[1480204800000,0.3981],[1480291200000,0.3981],[1480377600000,0.39528],[1480464000000,0.39417]], 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: [[1477958400000, 0.403610],[1477958400000, 0.403610],[1478131200000, 0.403030],[1478217600000, 0.403040],[1478304000000, 0.402750],[1478390400000, 0.402750],[1478476800000, 0.402750],[1478563200000, 0.400120],[1478649600000, 0.401080],[1478736000000, 0.400080],[1478822400000, 0.403370],[1478908800000, 0.393000],[1478995200000, 0.393000],[1479081600000, 0.393000],[1479168000000, 0.391000],[1479254400000, 0.396790],[1479340800000, 0.408170],[1479427200000, 0.401340],[1479513600000, 0.397760],[1479600000000, 0.397760],[1479686400000, 0.397760],[1479772800000, 0.400630],[1479859200000, 0.403260],[1479945600000, 0.399750],[1480032000000, 0.395930],[1480118400000, 0.398100],[1480204800000, 0.398100],[1480291200000, 0.398100],[1480377600000, 0.395280],[1480464000000, 0.394170]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });