$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1214870400000,0.810079],[1214956800000,0.808832],[1215043200000,0.810798],[1215129600000,0.814901],[1215216000000,0.807465],[1215302400000,0.807465],[1215388800000,0.807465],[1215475200000,0.80532],[1215561600000,0.806244],[1215648000000,0.805293],[1215734400000,0.805651],[1215820800000,0.808847],[1215907200000,0.808847],[1215993600000,0.808847],[1216080000000,0.810361],[1216166400000,0.815249],[1216252800000,0.808199],[1216339200000,0.809406],[1216425600000,0.810081],[1216512000000,0.810081],[1216598400000,0.810081],[1216684800000,0.811863],[1216771200000,0.81306],[1216857600000,0.804619],[1216944000000,0.801992],[1217030400000,0.805376],[1217116800000,0.805376],[1217203200000,0.805376],[1217289600000,0.806721],[1217376000000,0.80516],[1217462400000,0.799347]], 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: [[1214870400000, 0.810079],[1214870400000, 0.810079],[1214956800000, 0.808832],[1215043200000, 0.810798],[1215129600000, 0.814901],[1215216000000, 0.807465],[1215302400000, 0.807465],[1215388800000, 0.807465],[1215475200000, 0.805320],[1215561600000, 0.806244],[1215648000000, 0.805293],[1215734400000, 0.805651],[1215820800000, 0.808847],[1215907200000, 0.808847],[1215993600000, 0.808847],[1216080000000, 0.810361],[1216166400000, 0.815249],[1216252800000, 0.808199],[1216339200000, 0.809406],[1216425600000, 0.810081],[1216512000000, 0.810081],[1216598400000, 0.810081],[1216684800000, 0.811863],[1216771200000, 0.813060],[1216857600000, 0.804619],[1216944000000, 0.801992],[1217030400000, 0.805376],[1217116800000, 0.805376],[1217203200000, 0.805376],[1217289600000, 0.806721],[1217376000000, 0.805160],[1217462400000, 0.799347]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });