$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1283299200000,0.034762],[1283385600000,0.0352575],[1283472000000,0.035517],[1283558400000,0.0356745],[1283644800000,0.0356745],[1283731200000,0.0356745],[1283817600000,0.0357605],[1283904000000,0.0351831],[1283990400000,0.0347501],[1284076800000,0.0351878],[1284163200000,0.0354525],[1284249600000,0.0354525],[1284336000000,0.0354525],[1284422400000,0.0356755],[1284508800000,0.0358574],[1284595200000,0.0364994],[1284681600000,0.0367755],[1284768000000,0.0365691],[1284854400000,0.0365691],[1284940800000,0.0365691],[1285027200000,0.0368127],[1285113600000,0.037123],[1285200000000,0.0378445],[1285286400000,0.037553],[1285372800000,0.0380559],[1285459200000,0.0380559],[1285545600000,0.0380559],[1285632000000,0.038545],[1285718400000,0.0383219],[1285804800000,0.0390044]], 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, 0.034762],[1283299200000, 0.034762],[1283385600000, 0.035257],[1283472000000, 0.035517],[1283558400000, 0.035674],[1283644800000, 0.035674],[1283731200000, 0.035674],[1283817600000, 0.035761],[1283904000000, 0.035183],[1283990400000, 0.034750],[1284076800000, 0.035188],[1284163200000, 0.035452],[1284249600000, 0.035452],[1284336000000, 0.035452],[1284422400000, 0.035675],[1284508800000, 0.035857],[1284595200000, 0.036499],[1284681600000, 0.036776],[1284768000000, 0.036569],[1284854400000, 0.036569],[1284940800000, 0.036569],[1285027200000, 0.036813],[1285113600000, 0.037123],[1285200000000, 0.037845],[1285286400000, 0.037553],[1285372800000, 0.038056],[1285459200000, 0.038056],[1285545600000, 0.038056],[1285632000000, 0.038545],[1285718400000, 0.038322],[1285804800000, 0.039004]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });