$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1228089600000,6.8777],[1228176000000,7.142],[1228262400000,7.2388],[1228348800000,7.3819],[1228435200000,7.3614],[1228521600000,7.3598],[1228608000000,7.3598],[1228694400000,7.3598],[1228780800000,7.3989],[1228867200000,7.4301],[1228953600000,7.4743],[1229040000000,7.4868],[1229126400000,7.4731],[1229212800000,7.4731],[1229299200000,7.4731],[1229385600000,7.6538],[1229472000000,7.7383],[1229558400000,7.8648],[1229644800000,7.8788],[1229731200000,7.8788],[1229817600000,7.8788],[1229904000000,7.8788],[1229990400000,7.8788],[1230076800000,7.79],[1230163200000,7.79],[1230249600000,7.79],[1230336000000,7.7],[1230422400000,7.7],[1230508800000,7.7],[1230595200000,7.7],[1230681600000,7.7]], 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: [[1228089600000, 6.877700],[1228089600000, 6.877700],[1228176000000, 7.142000],[1228262400000, 7.238800],[1228348800000, 7.381900],[1228435200000, 7.361400],[1228521600000, 7.359800],[1228608000000, 7.359800],[1228694400000, 7.359800],[1228780800000, 7.398900],[1228867200000, 7.430100],[1228953600000, 7.474300],[1229040000000, 7.486800],[1229126400000, 7.473100],[1229212800000, 7.473100],[1229299200000, 7.473100],[1229385600000, 7.653800],[1229472000000, 7.738300],[1229558400000, 7.864800],[1229644800000, 7.878800],[1229731200000, 7.878800],[1229817600000, 7.878800],[1229904000000, 7.878800],[1229990400000, 7.878800],[1230076800000, 7.790000],[1230163200000, 7.790000],[1230249600000, 7.790000],[1230336000000, 7.700000],[1230422400000, 7.700000],[1230508800000, 7.700000],[1230595200000, 7.700000],[1230681600000, 7.700000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });