$(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: [[1430438400000,22.6015],[1430524800000,22.6015],[1430611200000,22.6015],[1430697600000,22.6015],[1430784000000,22.6015],[1430870400000,22.6423],[1430956800000,22.7604],[1431043200000,22.6499],[1431129600000,22.2474],[1431216000000,22.2474],[1431302400000,22.2474],[1431388800000,22.2474],[1431475200000,22.311],[1431561600000,22.1734],[1431648000000,22.6152],[1431734400000,22.4094],[1431820800000,22.4094],[1431907200000,22.4094],[1431993600000,24.0326],[1432080000000,22.8027],[1432166400000,22.1877],[1432252800000,22.1491],[1432339200000,22.3311],[1432425600000,22.3311],[1432512000000,22.3311],[1432598400000,22.4182],[1432684800000,22.6136],[1432771200000,null],[1432857600000,22.1715],[1432944000000,22.3674],[1433030400000,22.3674]], 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: [[1430438400000, 22.601546],[1430438400000, 22.601546],[1430524800000, 22.601546],[1430611200000, 22.601546],[1430697600000, 22.601546],[1430784000000, 22.601546],[1430870400000, 22.642272],[1430956800000, 22.760401],[1431043200000, 22.649851],[1431129600000, 22.247361],[1431216000000, 22.247361],[1431302400000, 22.247361],[1431388800000, 22.247361],[1431475200000, 22.311037],[1431561600000, 22.173372],[1431648000000, 22.615176],[1431734400000, 22.409413],[1431820800000, 22.409413],[1431907200000, 22.409413],[1431993600000, 24.032574],[1432080000000, 22.802672],[1432166400000, 22.187667],[1432252800000, 22.149065],[1432339200000, 22.331058],[1432425600000, 22.331058],[1432512000000, 22.331058],[1432598400000, 22.418155],[1432684800000, 22.613550],[1432857600000, 22.171450],[1432944000000, 22.367394],[1433030400000, 22.367394]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });