$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1462060800000,26.1622],[1462147200000,26.1622],[1462233600000,26.1622],[1462320000000,26.1622],[1462406400000,26.3688],[1462492800000,26.083],[1462579200000,25.9742],[1462665600000,25.9742],[1462752000000,25.9742],[1462838400000,25.9742],[1462924800000,25.8693],[1463011200000,26.033],[1463097600000,26.0588],[1463184000000,26.2002],[1463270400000,26.2002],[1463356800000,26.2002],[1463443200000,26.0032],[1463529600000,25.8163],[1463616000000,25.697],[1463702400000,25.5056],[1463788800000,25.419],[1463875200000,null],[1463961600000,25.419],[1464048000000,25.3726],[1464134400000,25.3356],[1464220800000,25.333],[1464307200000,25.3108],[1464393600000,25.3631],[1464480000000,25.3631],[1464566400000,25.3631],[1464652800000,25.3503]], 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: [[1462060800000, 26.162231],[1462060800000, 26.162231],[1462147200000, 26.162231],[1462233600000, 26.162231],[1462320000000, 26.162231],[1462406400000, 26.368754],[1462492800000, 26.082980],[1462579200000, 25.974151],[1462665600000, 25.974151],[1462752000000, 25.974151],[1462838400000, 25.974151],[1462924800000, 25.869308],[1463011200000, 26.033020],[1463097600000, 26.058849],[1463184000000, 26.200225],[1463270400000, 26.200225],[1463356800000, 26.200225],[1463443200000, 26.003188],[1463529600000, 25.816303],[1463616000000, 25.696951],[1463702400000, 25.505585],[1463788800000, 25.419014],[1463961600000, 25.419014],[1464048000000, 25.372553],[1464134400000, 25.335616],[1464220800000, 25.332965],[1464307200000, 25.310767],[1464393600000, 25.363130],[1464480000000, 25.363130],[1464566400000, 25.363130],[1464652800000, 25.350343]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });