$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1467331200000,34.7311],[1467417600000,34.6497],[1467504000000,34.6497],[1467590400000,34.6497],[1467676800000,34.6419],[1467763200000,34.7059],[1467849600000,34.6014],[1467936000000,34.571],[1468022400000,34.587],[1468108800000,34.587],[1468195200000,34.587],[1468281600000,34.5349],[1468368000000,34.578],[1468454400000,34.5495],[1468540800000,34.4995],[1468627200000,34.5793],[1468713600000,34.5793],[1468800000000,34.5793],[1468886400000,34.5216],[1468972800000,34.4421],[1469059200000,34.3768],[1469145600000,34.3986],[1469232000000,34.3767],[1469318400000,34.3767],[1469404800000,34.3767],[1469491200000,34.3168],[1469577600000,34.3743],[1469664000000,34.3727],[1469750400000,null],[1469836800000,34.565],[1469923200000,34.565]], 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: [[1467331200000, 34.731075],[1467331200000, 34.731075],[1467417600000, 34.649742],[1467504000000, 34.649742],[1467590400000, 34.649742],[1467676800000, 34.641940],[1467763200000, 34.705875],[1467849600000, 34.601368],[1467936000000, 34.571015],[1468022400000, 34.587050],[1468108800000, 34.587050],[1468195200000, 34.587050],[1468281600000, 34.534927],[1468368000000, 34.577997],[1468454400000, 34.549489],[1468540800000, 34.499482],[1468627200000, 34.579282],[1468713600000, 34.579282],[1468800000000, 34.579282],[1468886400000, 34.521596],[1468972800000, 34.442121],[1469059200000, 34.376804],[1469145600000, 34.398558],[1469232000000, 34.376652],[1469318400000, 34.376652],[1469404800000, 34.376652],[1469491200000, 34.316847],[1469577600000, 34.374271],[1469664000000, 34.372671],[1469836800000, 34.564957],[1469923200000, 34.564957]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });