$(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: [[1283299200000,10.0003],[1283385600000,10.0942],[1283472000000,10.1234],[1283558400000,10.1494],[1283644800000,10.1494],[1283731200000,10.1494],[1283817600000,10.181],[1283904000000,10.0782],[1283990400000,10.041],[1284076800000,10.0553],[1284163200000,10.0632],[1284249600000,10.0632],[1284336000000,10.0632],[1284422400000,10.1233],[1284508800000,10.1749],[1284595200000,10.2862],[1284681600000,10.3567],[1284768000000,10.3425],[1284854400000,10.3425],[1284940800000,10.3425],[1285027200000,10.3536],[1285113600000,10.39],[1285200000000,10.5832],[1285286400000,10.5468],[1285372800000,10.6081],[1285459200000,10.6081],[1285545600000,10.6081],[1285632000000,10.665],[1285718400000,10.6516],[1285804800000,10.7711]], 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: [[1283299200000, 10.000336],[1283299200000, 10.000336],[1283385600000, 10.094208],[1283472000000, 10.123400],[1283558400000, 10.149384],[1283644800000, 10.149384],[1283731200000, 10.149384],[1283817600000, 10.181017],[1283904000000, 10.078210],[1283990400000, 10.041042],[1284076800000, 10.055276],[1284163200000, 10.063185],[1284249600000, 10.063185],[1284336000000, 10.063185],[1284422400000, 10.123287],[1284508800000, 10.174887],[1284595200000, 10.286249],[1284681600000, 10.356730],[1284768000000, 10.342475],[1284854400000, 10.342475],[1284940800000, 10.342475],[1285027200000, 10.353562],[1285113600000, 10.389990],[1285200000000, 10.583219],[1285286400000, 10.546753],[1285372800000, 10.608087],[1285459200000, 10.608087],[1285545600000, 10.608087],[1285632000000, 10.665024],[1285718400000, 10.651571],[1285804800000, 10.771065]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });