$(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: [[1086048000000,5.3245],[1086134400000,5.3242],[1086220800000,5.3237],[1086307200000,5.3227],[1086393600000,5.3227],[1086480000000,5.3227],[1086566400000,5.3227],[1086652800000,5.3224],[1086739200000,5.322],[1086825600000,5.322],[1086912000000,5.3215],[1086998400000,5.3215],[1087084800000,5.3215],[1087171200000,5.3215],[1087257600000,5.3215],[1087344000000,5.3215],[1087430400000,5.3215],[1087516800000,5.3214],[1087603200000,5.3214],[1087689600000,5.3214],[1087776000000,5.3215],[1087862400000,5.3214],[1087948800000,5.3214],[1088035200000,5.3213],[1088121600000,5.321],[1088208000000,5.321],[1088294400000,5.321],[1088380800000,5.321],[1088467200000,5.321],[1088553600000,5.3207]], 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: [[1086048000000, 5.324500],[1086048000000, 5.324500],[1086134400000, 5.324200],[1086220800000, 5.323700],[1086307200000, 5.322700],[1086393600000, 5.322700],[1086480000000, 5.322700],[1086566400000, 5.322700],[1086652800000, 5.322400],[1086739200000, 5.322000],[1086825600000, 5.322000],[1086912000000, 5.321500],[1086998400000, 5.321500],[1087084800000, 5.321500],[1087171200000, 5.321500],[1087257600000, 5.321500],[1087344000000, 5.321500],[1087430400000, 5.321500],[1087516800000, 5.321400],[1087603200000, 5.321400],[1087689600000, 5.321400],[1087776000000, 5.321500],[1087862400000, 5.321400],[1087948800000, 5.321400],[1088035200000, 5.321300],[1088121600000, 5.321000],[1088208000000, 5.321000],[1088294400000, 5.321000],[1088380800000, 5.321000],[1088467200000, 5.321000],[1088553600000, 5.320700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });