$(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: [[1477958400000,3.76628],[1478044800000,null],[1478131200000,3.78184],[1478217600000,3.78423],[1478304000000,3.78516],[1478390400000,3.78516],[1478476800000,3.78516],[1478563200000,3.77447],[1478649600000,3.7663],[1478736000000,3.7681],[1478822400000,3.76284],[1478908800000,3.7666],[1478995200000,3.7666],[1479081600000,3.7666],[1479168000000,3.76254],[1479254400000,3.79344],[1479340800000,3.82982],[1479427200000,3.7926],[1479513600000,3.76238],[1479600000000,3.76238],[1479686400000,3.76238],[1479772800000,3.73989],[1479859200000,3.72669],[1479945600000,3.70819],[1480032000000,3.6979],[1480118400000,3.71749],[1480204800000,3.71749],[1480291200000,3.71749],[1480377600000,3.71405],[1480464000000,3.71018]], 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, 3.766276],[1477958400000, 3.766276],[1478131200000, 3.781837],[1478217600000, 3.784225],[1478304000000, 3.785160],[1478390400000, 3.785160],[1478476800000, 3.785160],[1478563200000, 3.774470],[1478649600000, 3.766298],[1478736000000, 3.768100],[1478822400000, 3.762839],[1478908800000, 3.766596],[1478995200000, 3.766596],[1479081600000, 3.766596],[1479168000000, 3.762538],[1479254400000, 3.793441],[1479340800000, 3.829822],[1479427200000, 3.792596],[1479513600000, 3.762382],[1479600000000, 3.762382],[1479686400000, 3.762382],[1479772800000, 3.739890],[1479859200000, 3.726689],[1479945600000, 3.708188],[1480032000000, 3.697905],[1480118400000, 3.717486],[1480204800000, 3.717486],[1480291200000, 3.717486],[1480377600000, 3.714053],[1480464000000, 3.710176]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });