$(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: [[1196467200000,4.50656],[1196553600000,4.50656],[1196640000000,4.50656],[1196726400000,4.47026],[1196812800000,4.51712],[1196899200000,4.51671],[1196985600000,4.4536],[1197072000000,4.46994],[1197158400000,4.46994],[1197244800000,4.46994],[1197331200000,4.48909],[1197417600000,4.45007],[1197504000000,4.45606],[1197590400000,4.44459],[1197676800000,4.39588],[1197763200000,4.39588],[1197849600000,4.39588],[1197936000000,4.37543],[1198022400000,4.38506],[1198108800000,4.37616],[1198195200000,4.36442],[1198281600000,4.37148],[1198368000000,4.37148],[1198454400000,4.37148],[1198540800000,4.37248],[1198627200000,4.37248],[1198713600000,4.37248],[1198800000000,4.39431],[1198886400000,4.46848]], 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: [[1196467200000, 4.506562],[1196467200000, 4.506562],[1196553600000, 4.506562],[1196640000000, 4.506562],[1196726400000, 4.470262],[1196812800000, 4.517115],[1196899200000, 4.516709],[1196985600000, 4.453596],[1197072000000, 4.469937],[1197158400000, 4.469937],[1197244800000, 4.469937],[1197331200000, 4.489092],[1197417600000, 4.450066],[1197504000000, 4.456061],[1197590400000, 4.444593],[1197676800000, 4.395875],[1197763200000, 4.395875],[1197849600000, 4.395875],[1197936000000, 4.375430],[1198022400000, 4.385062],[1198108800000, 4.376160],[1198195200000, 4.364419],[1198281600000, 4.371478],[1198368000000, 4.371478],[1198454400000, 4.371478],[1198540800000, 4.372476],[1198627200000, 4.372476],[1198713600000, 4.372476],[1198800000000, 4.394305],[1198886400000, 4.468477]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });