$(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: [[1438387200000,21.9305],[1438473600000,21.9305],[1438560000000,21.9305],[1438646400000,22.4409],[1438732800000,22.3937],[1438819200000,22.0211],[1438905600000,21.829],[1438992000000,21.4886],[1439078400000,21.4886],[1439164800000,21.4886],[1439251200000,21.578],[1439337600000,21.7573],[1439424000000,21.9582],[1439510400000,21.909],[1439596800000,22.3499],[1439683200000,22.3499],[1439769600000,22.3499],[1439856000000,22.5449],[1439942400000,22.6233],[1440028800000,22.653],[1440115200000,22.8713],[1440201600000,23.1547],[1440288000000,23.1547],[1440374400000,23.1547],[1440460800000,null],[1440547200000,24.0267],[1440633600000,22.6662],[1440720000000,22.3324],[1440806400000,22.0892],[1440892800000,22.0892],[1440979200000,22.0892]], 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: [[1438387200000, 21.930539],[1438387200000, 21.930539],[1438473600000, 21.930539],[1438560000000, 21.930539],[1438646400000, 22.440854],[1438732800000, 22.393721],[1438819200000, 22.021140],[1438905600000, 21.829029],[1438992000000, 21.488583],[1439078400000, 21.488583],[1439164800000, 21.488583],[1439251200000, 21.577958],[1439337600000, 21.757297],[1439424000000, 21.958215],[1439510400000, 21.909015],[1439596800000, 22.349874],[1439683200000, 22.349874],[1439769600000, 22.349874],[1439856000000, 22.544856],[1439942400000, 22.623289],[1440028800000, 22.652963],[1440115200000, 22.871341],[1440201600000, 23.154652],[1440288000000, 23.154652],[1440374400000, 23.154652],[1440547200000, 24.026672],[1440633600000, 22.666158],[1440720000000, 22.332352],[1440806400000, 22.089160],[1440892800000, 22.089160],[1440979200000, 22.089160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });