$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1225497600000,5.02844],[1225584000000,5.02844],[1225670400000,5.02844],[1225756800000,5.00691],[1225843200000,4.99837],[1225929600000,4.97869],[1226016000000,4.94075],[1226102400000,4.93655],[1226188800000,4.93655],[1226275200000,4.93655],[1226361600000,4.92402],[1226448000000,4.91548],[1226534400000,4.87109],[1226620800000,4.85475],[1226707200000,4.85536],[1226793600000,4.85536],[1226880000000,4.85536],[1226966400000,4.84164],[1227052800000,4.91019],[1227139200000,4.97263],[1227225600000,4.92066],[1227312000000,5.06056],[1227398400000,5.06056],[1227484800000,5.06056],[1227571200000,5.20874],[1227657600000,5.48417],[1227744000000,5.64216],[1227830400000,5.62908],[1227916800000,5.6637],[1228003200000,5.6637]], 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.028444],[1225497600000, 5.028444],[1225584000000, 5.028444],[1225670400000, 5.028444],[1225756800000, 5.006908],[1225843200000, 4.998367],[1225929600000, 4.978692],[1226016000000, 4.940749],[1226102400000, 4.936554],[1226188800000, 4.936554],[1226275200000, 4.936554],[1226361600000, 4.924016],[1226448000000, 4.915484],[1226534400000, 4.871092],[1226620800000, 4.854749],[1226707200000, 4.855364],[1226793600000, 4.855364],[1226880000000, 4.855364],[1226966400000, 4.841635],[1227052800000, 4.910192],[1227139200000, 4.972626],[1227225600000, 4.920664],[1227312000000, 5.060561],[1227398400000, 5.060561],[1227484800000, 5.060561],[1227571200000, 5.208740],[1227657600000, 5.484170],[1227744000000, 5.642157],[1227830400000, 5.629076],[1227916800000, 5.663700],[1228003200000, 5.663700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });