$(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: [[1483228800000,26.5285],[1483315200000,26.5285],[1483401600000,26.5285],[1483488000000,26.5285],[1483574400000,26.0193],[1483660800000,26.0193],[1483747200000,26.6783],[1483833600000,26.6783],[1483920000000,26.6783],[1484006400000,26.6783],[1484092800000,26.7564],[1484179200000,26.5619],[1484265600000,27.0918],[1484352000000,null],[1484438400000,27.4964],[1484524800000,27.4964],[1484611200000,27.4239],[1484697600000,27.5576],[1484784000000,27.384],[1484870400000,27.2861],[1484956800000,27.1856],[1485043200000,27.1856],[1485129600000,27.1856],[1485216000000,27.3019],[1485302400000,27.2573],[1485388800000,27.236],[1485475200000,27.2309],[1485561600000,27.1719],[1485648000000,27.1719],[1485734400000,27.1719],[1485820800000,27.0199]], 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: [[1483228800000, 26.528471],[1483228800000, 26.528471],[1483315200000, 26.528471],[1483401600000, 26.528471],[1483488000000, 26.528471],[1483574400000, 26.019261],[1483660800000, 26.019261],[1483747200000, 26.678286],[1483833600000, 26.678286],[1483920000000, 26.678286],[1484006400000, 26.678286],[1484092800000, 26.756381],[1484179200000, 26.561881],[1484265600000, 27.091803],[1484438400000, 27.496428],[1484524800000, 27.496428],[1484611200000, 27.423850],[1484697600000, 27.557571],[1484784000000, 27.384013],[1484870400000, 27.286136],[1484956800000, 27.185579],[1485043200000, 27.185579],[1485129600000, 27.185579],[1485216000000, 27.301923],[1485302400000, 27.257262],[1485388800000, 27.236025],[1485475200000, 27.230893],[1485561600000, 27.171890],[1485648000000, 27.171890],[1485734400000, 27.171890],[1485820800000, 27.019904]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });