$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1328054400000,12.3927],[1328140800000,12.38],[1328227200000,12.3863],[1328313600000,12.3917],[1328400000000,12.3917],[1328486400000,12.3917],[1328572800000,12.346],[1328659200000,12.3685],[1328745600000,12.4272],[1328832000000,12.4096],[1328918400000,12.3956],[1329004800000,12.3956],[1329091200000,12.3956],[1329177600000,12.395],[1329264000000,12.365],[1329350400000,12.336],[1329436800000,12.2813],[1329523200000,12.3374],[1329609600000,12.3374],[1329696000000,12.3374],[1329782400000,12.3362],[1329868800000,12.3481],[1329955200000,12.3338],[1330041600000,12.3611],[1330128000000,12.4036],[1330214400000,12.4036],[1330300800000,12.4036],[1330387200000,12.4021],[1330473600000,12.4175]], 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, 12.392704],[1328054400000, 12.392704],[1328140800000, 12.379992],[1328227200000, 12.386306],[1328313600000, 12.391704],[1328400000000, 12.391704],[1328486400000, 12.391704],[1328572800000, 12.345979],[1328659200000, 12.368474],[1328745600000, 12.427170],[1328832000000, 12.409606],[1328918400000, 12.395610],[1329004800000, 12.395610],[1329091200000, 12.395610],[1329177600000, 12.394985],[1329264000000, 12.364982],[1329350400000, 12.336015],[1329436800000, 12.281301],[1329523200000, 12.337410],[1329609600000, 12.337410],[1329696000000, 12.337410],[1329782400000, 12.336174],[1329868800000, 12.348130],[1329955200000, 12.333785],[1330041600000, 12.361136],[1330128000000, 12.403635],[1330214400000, 12.403635],[1330300800000, 12.403635],[1330387200000, 12.402074],[1330473600000, 12.417539]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });