$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1225497600000,7.38477],[1225584000000,7.38477],[1225670400000,7.38477],[1225756800000,7.42625],[1225843200000,7.46906],[1225929600000,7.49343],[1226016000000,7.40519],[1226102400000,7.39644],[1226188800000,7.39644],[1226275200000,7.39644],[1226361600000,7.45151],[1226448000000,7.36241],[1226534400000,7.24234],[1226620800000,7.24183],[1226707200000,7.3316],[1226793600000,7.3316],[1226880000000,7.3316],[1226966400000,7.33508],[1227052800000,7.4468],[1227139200000,7.57231],[1227225600000,7.5237],[1227312000000,7.77758],[1227398400000,7.77758],[1227484800000,7.77758],[1227571200000,8.04073],[1227657600000,8.46756],[1227744000000,8.72052],[1227830400000,8.69692],[1227916800000,8.75325],[1228003200000,8.75325]], 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, 7.384772],[1225497600000, 7.384772],[1225584000000, 7.384772],[1225670400000, 7.384772],[1225756800000, 7.426246],[1225843200000, 7.469060],[1225929600000, 7.493429],[1226016000000, 7.405195],[1226102400000, 7.396439],[1226188800000, 7.396439],[1226275200000, 7.396439],[1226361600000, 7.451514],[1226448000000, 7.362412],[1226534400000, 7.242340],[1226620800000, 7.241830],[1226707200000, 7.331600],[1226793600000, 7.331600],[1226880000000, 7.331600],[1226966400000, 7.335077],[1227052800000, 7.446797],[1227139200000, 7.572314],[1227225600000, 7.523695],[1227312000000, 7.777576],[1227398400000, 7.777576],[1227484800000, 7.777576],[1227571200000, 8.040731],[1227657600000, 8.467559],[1227744000000, 8.720518],[1227830400000, 8.696922],[1227916800000, 8.753249],[1228003200000, 8.753249]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });