$(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: [[1225497600000,5.7888],[1225584000000,5.7888],[1225670400000,5.7888],[1225756800000,5.7918],[1225843200000,5.8261],[1225929600000,5.8224],[1226016000000,5.7989],[1226102400000,5.7984],[1226188800000,5.7984],[1226275200000,5.7984],[1226361600000,5.7804],[1226448000000,5.7758],[1226534400000,5.78],[1226620800000,5.7819],[1226707200000,5.7843],[1226793600000,5.7843],[1226880000000,5.7843],[1226966400000,5.7939],[1227052800000,5.8854],[1227139200000,5.9936],[1227225600000,5.9988],[1227312000000,6.1717],[1227398400000,6.1717],[1227484800000,6.1717],[1227571200000,6.2951],[1227657600000,6.6096],[1227744000000,6.7418],[1227830400000,6.7418],[1227916800000,6.8777],[1228003200000,6.8777]], 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: [[1225497600000, 5.788800],[1225497600000, 5.788800],[1225584000000, 5.788800],[1225670400000, 5.788800],[1225756800000, 5.791800],[1225843200000, 5.826100],[1225929600000, 5.822400],[1226016000000, 5.798900],[1226102400000, 5.798400],[1226188800000, 5.798400],[1226275200000, 5.798400],[1226361600000, 5.780400],[1226448000000, 5.775800],[1226534400000, 5.780000],[1226620800000, 5.781900],[1226707200000, 5.784300],[1226793600000, 5.784300],[1226880000000, 5.784300],[1226966400000, 5.793900],[1227052800000, 5.885400],[1227139200000, 5.993600],[1227225600000, 5.998800],[1227312000000, 6.171700],[1227398400000, 6.171700],[1227484800000, 6.171700],[1227571200000, 6.295100],[1227657600000, 6.609600],[1227744000000, 6.741800],[1227830400000, 6.741800],[1227916800000, 6.877700],[1228003200000, 6.877700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });