$(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: [[1328054400000,8.73774],[1328140800000,8.73708],[1328227200000,8.68336],[1328313600000,8.72568],[1328400000000,8.72568],[1328486400000,8.72568],[1328572800000,8.63526],[1328659200000,8.6679],[1328745600000,8.75499],[1328832000000,8.77219],[1328918400000,8.71043],[1329004800000,8.71043],[1329091200000,8.71043],[1329177600000,8.75674],[1329264000000,8.71182],[1329350400000,8.66232],[1329436800000,8.58961],[1329523200000,8.69966],[1329609600000,8.69966],[1329696000000,8.69966],[1329782400000,8.77534],[1329868800000,8.74757],[1329955200000,8.75326],[1330041600000,8.81333],[1330128000000,8.89102],[1330214400000,8.89102],[1330300800000,8.89102],[1330387200000,8.87205],[1330473600000,8.91727]], 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: [[1328054400000, 8.737740],[1328054400000, 8.737740],[1328140800000, 8.737076],[1328227200000, 8.683361],[1328313600000, 8.725681],[1328400000000, 8.725681],[1328486400000, 8.725681],[1328572800000, 8.635259],[1328659200000, 8.667902],[1328745600000, 8.754989],[1328832000000, 8.772188],[1328918400000, 8.710431],[1329004800000, 8.710431],[1329091200000, 8.710431],[1329177600000, 8.756739],[1329264000000, 8.711825],[1329350400000, 8.662321],[1329436800000, 8.589606],[1329523200000, 8.699664],[1329609600000, 8.699664],[1329696000000, 8.699664],[1329782400000, 8.775335],[1329868800000, 8.747569],[1329955200000, 8.753258],[1330041600000, 8.813333],[1330128000000, 8.891016],[1330214400000, 8.891016],[1330300800000, 8.891016],[1330387200000, 8.872049],[1330473600000, 8.917267]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });