$(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: [[1514764800000,28.6188],[1514851200000,28.6188],[1514937600000,28.6188],[1515024000000,28.5726],[1515110400000,28.7326],[1515196800000,28.8942],[1515283200000,28.8942],[1515369600000,28.8942],[1515456000000,28.8942],[1515542400000,28.6963],[1515628800000,28.9739],[1515715200000,29.1268],[1515801600000,29.384],[1515888000000,29.384],[1515974400000,29.384],[1516060800000,29.725],[1516147200000,29.7093],[1516233600000,29.7106],[1516320000000,29.9704],[1516406400000,30.0641],[1516492800000,30.0641],[1516579200000,30.0641],[1516665600000,30.0418],[1516752000000,30.0166],[1516838400000,30.383],[1516924800000,30.5344],[1517011200000,30.5219],[1517097600000,30.5219],[1517184000000,30.5219],[1517270400000,30.2399],[1517356800000,30.0196]], 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: [[1514764800000, 28.618783],[1514764800000, 28.618783],[1514851200000, 28.618783],[1514937600000, 28.618783],[1515024000000, 28.572594],[1515110400000, 28.732573],[1515196800000, 28.894199],[1515283200000, 28.894199],[1515369600000, 28.894199],[1515456000000, 28.894199],[1515542400000, 28.696266],[1515628800000, 28.973913],[1515715200000, 29.126799],[1515801600000, 29.383996],[1515888000000, 29.383996],[1515974400000, 29.383996],[1516060800000, 29.724995],[1516147200000, 29.709284],[1516233600000, 29.710617],[1516320000000, 29.970423],[1516406400000, 30.064060],[1516492800000, 30.064060],[1516579200000, 30.064060],[1516665600000, 30.041769],[1516752000000, 30.016573],[1516838400000, 30.383043],[1516924800000, 30.534443],[1517011200000, 30.521910],[1517097600000, 30.521910],[1517184000000, 30.521910],[1517270400000, 30.239869],[1517356800000, 30.019604]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });