$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1283299200000,0.402428],[1283385600000,0.408094],[1283472000000,0.409688],[1283558400000,0.41094],[1283644800000,0.41094],[1283731200000,0.41094],[1283817600000,0.412137],[1283904000000,0.407596],[1283990400000,0.406224],[1284076800000,0.407377],[1284163200000,0.40773],[1284249600000,0.40773],[1284336000000,0.40773],[1284422400000,0.410315],[1284508800000,0.414236],[1284595200000,0.417885],[1284681600000,0.420732],[1284768000000,0.419063],[1284854400000,0.419063],[1284940800000,0.419063],[1285027200000,0.419597],[1285113600000,0.421415],[1285200000000,0.430597],[1285286400000,0.428312],[1285372800000,0.430645],[1285459200000,0.430645],[1285545600000,0.430645],[1285632000000,0.434067],[1285718400000,0.432674],[1285804800000,0.438383]], 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.402428],[1283299200000, 0.402428],[1283385600000, 0.408094],[1283472000000, 0.409688],[1283558400000, 0.410940],[1283644800000, 0.410940],[1283731200000, 0.410940],[1283817600000, 0.412137],[1283904000000, 0.407596],[1283990400000, 0.406224],[1284076800000, 0.407377],[1284163200000, 0.407730],[1284249600000, 0.407730],[1284336000000, 0.407730],[1284422400000, 0.410315],[1284508800000, 0.414236],[1284595200000, 0.417885],[1284681600000, 0.420732],[1284768000000, 0.419063],[1284854400000, 0.419063],[1284940800000, 0.419063],[1285027200000, 0.419597],[1285113600000, 0.421415],[1285200000000, 0.430597],[1285286400000, 0.428312],[1285372800000, 0.430645],[1285459200000, 0.430645],[1285545600000, 0.430645],[1285632000000, 0.434067],[1285718400000, 0.432674],[1285804800000, 0.438383]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });