$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1283299200000,0.034484],[1283385600000,0.034808],[1283472000000,0.034908],[1283558400000,0.034998],[1283644800000,0.034998],[1283731200000,0.034998],[1283817600000,0.035107],[1283904000000,0.034752],[1283990400000,0.034624],[1284076800000,0.034673],[1284163200000,0.034701],[1284249600000,0.034701],[1284336000000,0.034701],[1284422400000,0.034908],[1284508800000,0.035086],[1284595200000,0.03547],[1284681600000,0.035713],[1284768000000,0.035664],[1284854400000,0.035664],[1284940800000,0.035664],[1285027200000,0.035702],[1285113600000,0.035828],[1285200000000,0.036494],[1285286400000,0.036368],[1285372800000,0.03658],[1285459200000,0.03658],[1285545600000,0.03658],[1285632000000,0.036776],[1285718400000,0.03673],[1285804800000,0.037142]], 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.034484],[1283299200000, 0.034484],[1283385600000, 0.034808],[1283472000000, 0.034908],[1283558400000, 0.034998],[1283644800000, 0.034998],[1283731200000, 0.034998],[1283817600000, 0.035107],[1283904000000, 0.034752],[1283990400000, 0.034624],[1284076800000, 0.034673],[1284163200000, 0.034701],[1284249600000, 0.034701],[1284336000000, 0.034701],[1284422400000, 0.034908],[1284508800000, 0.035086],[1284595200000, 0.035470],[1284681600000, 0.035713],[1284768000000, 0.035664],[1284854400000, 0.035664],[1284940800000, 0.035664],[1285027200000, 0.035702],[1285113600000, 0.035828],[1285200000000, 0.036494],[1285286400000, 0.036368],[1285372800000, 0.036580],[1285459200000, 0.036580],[1285545600000, 0.036580],[1285632000000, 0.036776],[1285718400000, 0.036730],[1285804800000, 0.037142]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });