$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1225497600000,8.61545],[1225584000000,8.61545],[1225670400000,8.61545],[1225756800000,8.6319],[1225843200000,8.64689],[1225929600000,8.69722],[1226016000000,8.64947],[1226102400000,8.61754],[1226188800000,8.61754],[1226275200000,8.61754],[1226361600000,8.60829],[1226448000000,8.5649],[1226534400000,8.52056],[1226620800000,8.51192],[1226707200000,8.54091],[1226793600000,8.54091],[1226880000000,8.54091],[1226966400000,8.55033],[1227052800000,8.68875],[1227139200000,8.84595],[1227225600000,8.8302],[1227312000000,9.11473],[1227398400000,9.11473],[1227484800000,9.11473],[1227571200000,9.31747],[1227657600000,9.82905],[1227744000000,10.0731],[1227830400000,10.0731],[1227916800000,10.2761],[1228003200000,10.2761]], 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, 8.615452],[1225497600000, 8.615452],[1225584000000, 8.615452],[1225670400000, 8.615452],[1225756800000, 8.631903],[1225843200000, 8.646888],[1225929600000, 8.697224],[1226016000000, 8.649472],[1226102400000, 8.617543],[1226188800000, 8.617543],[1226275200000, 8.617543],[1226361600000, 8.608293],[1226448000000, 8.564900],[1226534400000, 8.520562],[1226620800000, 8.511919],[1226707200000, 8.540914],[1226793600000, 8.540914],[1226880000000, 8.540914],[1226966400000, 8.550330],[1227052800000, 8.688746],[1227139200000, 8.845950],[1227225600000, 8.830205],[1227312000000, 9.114727],[1227398400000, 9.114727],[1227484800000, 9.114727],[1227571200000, 9.317474],[1227657600000, 9.829045],[1227744000000, 10.073093],[1227830400000, 10.073093],[1227916800000, 10.276144],[1228003200000, 10.276144]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });