$(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: [[1388534400000,9.02528],[1388620800000,9.02528],[1388707200000,9.02528],[1388793600000,8.85341],[1388880000000,8.85341],[1388966400000,8.85341],[1389052800000,8.85341],[1389139200000,8.85341],[1389225600000,8.77468],[1389312000000,8.79695],[1389398400000,8.79929],[1389484800000,8.79929],[1389571200000,8.79929],[1389657600000,8.84268],[1389744000000,8.85684],[1389830400000,8.80304],[1389916800000,8.80007],[1390003200000,8.80448],[1390089600000,8.80448],[1390176000000,8.80448],[1390262400000,8.78926],[1390348800000,8.74916],[1390435200000,8.78356],[1390521600000,8.8509],[1390608000000,8.92626],[1390694400000,8.92626],[1390780800000,8.92626],[1390867200000,8.89936],[1390953600000,8.88552],[1391040000000,8.87546],[1391126400000,8.8692]], 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: [[1388534400000, 9.025282],[1388534400000, 9.025282],[1388620800000, 9.025282],[1388707200000, 9.025282],[1388793600000, 8.853405],[1388880000000, 8.853405],[1388966400000, 8.853405],[1389052800000, 8.853405],[1389139200000, 8.853405],[1389225600000, 8.774678],[1389312000000, 8.796953],[1389398400000, 8.799294],[1389484800000, 8.799294],[1389571200000, 8.799294],[1389657600000, 8.842685],[1389744000000, 8.856845],[1389830400000, 8.803040],[1389916800000, 8.800066],[1390003200000, 8.804485],[1390089600000, 8.804485],[1390176000000, 8.804485],[1390262400000, 8.789255],[1390348800000, 8.749156],[1390435200000, 8.783559],[1390521600000, 8.850899],[1390608000000, 8.926256],[1390694400000, 8.926256],[1390780800000, 8.926256],[1390867200000, 8.899356],[1390953600000, 8.885523],[1391040000000, 8.875459],[1391126400000, 8.869205]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });