$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1214870400000,3.5601],[1214956800000,3.56367],[1215043200000,3.56004],[1215129600000,3.56695],[1215216000000,3.55166],[1215302400000,3.55166],[1215388800000,3.55166],[1215475200000,3.54796],[1215561600000,3.54924],[1215648000000,3.55332],[1215734400000,3.55523],[1215820800000,3.56477],[1215907200000,3.56477],[1215993600000,3.56477],[1216080000000,3.57087],[1216166400000,3.59667],[1216252800000,3.58809],[1216339200000,3.58242],[1216425600000,3.57174],[1216512000000,3.57174],[1216598400000,3.57174],[1216684800000,3.57972],[1216771200000,3.57697],[1216857600000,3.54886],[1216944000000,3.55617],[1217030400000,3.55943],[1217116800000,3.55943],[1217203200000,3.55943],[1217289600000,3.55502],[1217376000000,3.55184],[1217462400000,3.53871]], 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, 3.560095],[1214870400000, 3.560095],[1214956800000, 3.563668],[1215043200000, 3.560039],[1215129600000, 3.566954],[1215216000000, 3.551658],[1215302400000, 3.551658],[1215388800000, 3.551658],[1215475200000, 3.547956],[1215561600000, 3.549243],[1215648000000, 3.553323],[1215734400000, 3.555227],[1215820800000, 3.564771],[1215907200000, 3.564771],[1215993600000, 3.564771],[1216080000000, 3.570867],[1216166400000, 3.596673],[1216252800000, 3.588086],[1216339200000, 3.582419],[1216425600000, 3.571736],[1216512000000, 3.571736],[1216598400000, 3.571736],[1216684800000, 3.579717],[1216771200000, 3.576971],[1216857600000, 3.548855],[1216944000000, 3.556165],[1217030400000, 3.559425],[1217116800000, 3.559425],[1217203200000, 3.559425],[1217289600000, 3.555016],[1217376000000, 3.551843],[1217462400000, 3.538712]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });