$(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: [[1191196800000,4.31323],[1191283200000,4.32883],[1191369600000,4.29732],[1191456000000,4.30979],[1191542400000,4.28548],[1191628800000,4.29446],[1191715200000,4.29446],[1191801600000,4.29446],[1191888000000,4.26581],[1191974400000,4.25262],[1192060800000,4.27257],[1192147200000,4.28524],[1192233600000,4.25958],[1192320000000,4.25958],[1192406400000,4.25958],[1192492800000,4.2783],[1192579200000,4.26535],[1192665600000,4.27685],[1192752000000,4.32473],[1192838400000,4.317],[1192924800000,4.317],[1193011200000,4.317],[1193097600000,4.29659],[1193184000000,4.30854],[1193270400000,4.30154],[1193356800000,4.32671],[1193443200000,4.34133],[1193529600000,4.34133],[1193616000000,4.34133],[1193702400000,4.33206],[1193788800000,4.34334]], 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: [[1191196800000, 4.313231],[1191196800000, 4.313231],[1191283200000, 4.328832],[1191369600000, 4.297324],[1191456000000, 4.309791],[1191542400000, 4.285484],[1191628800000, 4.294459],[1191715200000, 4.294459],[1191801600000, 4.294459],[1191888000000, 4.265810],[1191974400000, 4.252616],[1192060800000, 4.272566],[1192147200000, 4.285242],[1192233600000, 4.259576],[1192320000000, 4.259576],[1192406400000, 4.259576],[1192492800000, 4.278305],[1192579200000, 4.265355],[1192665600000, 4.276853],[1192752000000, 4.324726],[1192838400000, 4.317004],[1192924800000, 4.317004],[1193011200000, 4.317004],[1193097600000, 4.296595],[1193184000000, 4.308535],[1193270400000, 4.301538],[1193356800000, 4.326714],[1193443200000, 4.341334],[1193529600000, 4.341334],[1193616000000, 4.341334],[1193702400000, 4.332055],[1193788800000, 4.343344]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });