$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1477958400000,19.0448],[1478044800000,null],[1478131200000,19.1087],[1478217600000,19.1158],[1478304000000,19.0401],[1478390400000,19.0401],[1478476800000,19.0401],[1478563200000,19.0956],[1478649600000,19.1222],[1478736000000,19.0394],[1478822400000,18.973],[1478908800000,18.9976],[1478995200000,18.9976],[1479081600000,18.9976],[1479168000000,19.0213],[1479254400000,19.2319],[1479340800000,19.546],[1479427200000,19.4047],[1479513600000,19.1605],[1479600000000,19.1605],[1479686400000,19.1605],[1479772800000,19.1577],[1479859200000,19.1441],[1479945600000,19.0238],[1480032000000,18.9645],[1480118400000,19.0674],[1480204800000,19.0674],[1480291200000,19.0674],[1480377600000,19.0762],[1480464000000,19.0233]], 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, 19.044799],[1477958400000, 19.044799],[1478131200000, 19.108727],[1478217600000, 19.115779],[1478304000000, 19.040111],[1478390400000, 19.040111],[1478476800000, 19.040111],[1478563200000, 19.095563],[1478649600000, 19.122208],[1478736000000, 19.039370],[1478822400000, 18.973018],[1478908800000, 18.997612],[1478995200000, 18.997612],[1479081600000, 18.997612],[1479168000000, 19.021319],[1479254400000, 19.231911],[1479340800000, 19.546029],[1479427200000, 19.404732],[1479513600000, 19.160515],[1479600000000, 19.160515],[1479686400000, 19.160515],[1479772800000, 19.157659],[1479859200000, 19.144128],[1479945600000, 19.023838],[1480032000000, 18.964495],[1480118400000, 19.067398],[1480204800000, 19.067398],[1480291200000, 19.067398],[1480377600000, 19.076184],[1480464000000, 19.023256]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });