$(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: [[1475280000000,26.6166],[1475366400000,26.6166],[1475452800000,26.6166],[1475539200000,26.6756],[1475625600000,26.3652],[1475712000000,26.4939],[1475798400000,26.4639],[1475884800000,26.2989],[1475971200000,26.2989],[1476057600000,26.2989],[1476144000000,26.2985],[1476230400000,26.185],[1476316800000,26.0772],[1476403200000,26.1077],[1476489600000,26.1077],[1476576000000,26.1077],[1476662400000,26.1077],[1476748800000,26.0725],[1476835200000,25.9153],[1476921600000,25.9891],[1477008000000,26.0067],[1477094400000,25.8074],[1477180800000,25.8074],[1477267200000,25.8074],[1477353600000,25.8063],[1477440000000,25.6519],[1477526400000,25.7867],[1477612800000,25.7425],[1477699200000,25.6533],[1477785600000,25.6533],[1477872000000,25.6533]], 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: [[1475280000000, 26.616556],[1475280000000, 26.616556],[1475366400000, 26.616556],[1475452800000, 26.616556],[1475539200000, 26.675593],[1475625600000, 26.365215],[1475712000000, 26.493861],[1475798400000, 26.463870],[1475884800000, 26.298873],[1475971200000, 26.298873],[1476057600000, 26.298873],[1476144000000, 26.298468],[1476230400000, 26.184963],[1476316800000, 26.077164],[1476403200000, 26.107735],[1476489600000, 26.107735],[1476576000000, 26.107735],[1476662400000, 26.107735],[1476748800000, 26.072517],[1476835200000, 25.915295],[1476921600000, 25.989135],[1477008000000, 26.006749],[1477094400000, 25.807415],[1477180800000, 25.807415],[1477267200000, 25.807415],[1477353600000, 25.806346],[1477440000000, 25.651941],[1477526400000, 25.786718],[1477612800000, 25.742458],[1477699200000, 25.653319],[1477785600000, 25.653319],[1477872000000, 25.653319]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });