$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1506816000000,26.5785],[1506902400000,26.5785],[1506988800000,26.6546],[1507075200000,26.7042],[1507161600000,26.8088],[1507248000000,26.7997],[1507334400000,26.7399],[1507420800000,26.7399],[1507507200000,26.7399],[1507593600000,26.5517],[1507680000000,26.5862],[1507766400000,26.5333],[1507852800000,26.6347],[1507939200000,26.6347],[1508025600000,26.6347],[1508112000000,26.6347],[1508198400000,26.6347],[1508284800000,26.4843],[1508371200000,26.4255],[1508457600000,26.4999],[1508544000000,26.5389],[1508630400000,26.5389],[1508716800000,26.5389],[1508803200000,null],[1508889600000,26.67],[1508976000000,26.77],[1509062400000,26.8266],[1509148800000,26.8758],[1509235200000,26.8758],[1509321600000,26.8758],[1509408000000,26.8294]], 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: [[1506816000000, 26.578496],[1506816000000, 26.578496],[1506902400000, 26.578496],[1506988800000, 26.654606],[1507075200000, 26.704193],[1507161600000, 26.808805],[1507248000000, 26.799684],[1507334400000, 26.739931],[1507420800000, 26.739931],[1507507200000, 26.739931],[1507593600000, 26.551695],[1507680000000, 26.586183],[1507766400000, 26.533312],[1507852800000, 26.634659],[1507939200000, 26.634659],[1508025600000, 26.634659],[1508112000000, 26.634659],[1508198400000, 26.634659],[1508284800000, 26.484328],[1508371200000, 26.425466],[1508457600000, 26.499950],[1508544000000, 26.538902],[1508630400000, 26.538902],[1508716800000, 26.538902],[1508889600000, 26.669955],[1508976000000, 26.770046],[1509062400000, 26.826619],[1509148800000, 26.875781],[1509235200000, 26.875781],[1509321600000, 26.875781],[1509408000000, 26.829390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });