$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1196467200000,7.4543],[1196553600000,7.4543],[1196640000000,7.4543],[1196726400000,7.40633],[1196812800000,7.44421],[1196899200000,7.4336],[1196985600000,7.34977],[1197072000000,7.39774],[1197158400000,7.39774],[1197244800000,7.39774],[1197331200000,7.43259],[1197417600000,7.40936],[1197504000000,7.41087],[1197590400000,7.41491],[1197676800000,7.32705],[1197763200000,7.32705],[1197849600000,7.32705],[1197936000000,7.26846],[1198022400000,7.28008],[1198108800000,7.26443],[1198195200000,7.24625],[1198281600000,7.2619],[1198368000000,7.2619],[1198454400000,7.2619],[1198540800000,7.27099],[1198627200000,7.27099],[1198713600000,7.27099],[1198800000000,7.33058],[1198886400000,7.41946]], 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, 7.454305],[1196467200000, 7.454305],[1196553600000, 7.454305],[1196640000000, 7.454305],[1196726400000, 7.406330],[1196812800000, 7.444205],[1196899200000, 7.433600],[1196985600000, 7.349770],[1197072000000, 7.397745],[1197158400000, 7.397745],[1197244800000, 7.397745],[1197331200000, 7.432590],[1197417600000, 7.409360],[1197504000000, 7.410875],[1197590400000, 7.414915],[1197676800000, 7.327045],[1197763200000, 7.327045],[1197849600000, 7.327045],[1197936000000, 7.268465],[1198022400000, 7.280080],[1198108800000, 7.264425],[1198195200000, 7.246245],[1198281600000, 7.261900],[1198368000000, 7.261900],[1198454400000, 7.261900],[1198540800000, 7.270990],[1198627200000, 7.270990],[1198713600000, 7.270990],[1198800000000, 7.330580],[1198886400000, 7.419460]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });