$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1175385600000,0.19415],[1175472000000,0.19415],[1175558400000,0.19427],[1175644800000,0.19435],[1175731200000,0.19416],[1175817600000,0.19433],[1175904000000,0.19479],[1175990400000,0.19479],[1176076800000,0.19479],[1176163200000,0.19479],[1176249600000,0.19482],[1176336000000,0.19484],[1176422400000,0.19525],[1176508800000,0.19552],[1176595200000,0.19552],[1176681600000,0.19552],[1176768000000,0.19576],[1176854400000,0.19574],[1176940800000,0.19614],[1177027200000,0.196],[1177113600000,0.19631],[1177200000000,0.19631],[1177286400000,0.19631],[1177372800000,0.19603],[1177459200000,0.19592],[1177545600000,0.19654],[1177632000000,0.19655],[1177718400000,0.19616],[1177804800000,0.19616],[1177891200000,0.19616]], 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: [[1175385600000, 0.194150],[1175385600000, 0.194150],[1175472000000, 0.194150],[1175558400000, 0.194270],[1175644800000, 0.194350],[1175731200000, 0.194160],[1175817600000, 0.194330],[1175904000000, 0.194790],[1175990400000, 0.194790],[1176076800000, 0.194790],[1176163200000, 0.194790],[1176249600000, 0.194820],[1176336000000, 0.194840],[1176422400000, 0.195250],[1176508800000, 0.195520],[1176595200000, 0.195520],[1176681600000, 0.195520],[1176768000000, 0.195760],[1176854400000, 0.195740],[1176940800000, 0.196140],[1177027200000, 0.196000],[1177113600000, 0.196310],[1177200000000, 0.196310],[1177286400000, 0.196310],[1177372800000, 0.196030],[1177459200000, 0.195920],[1177545600000, 0.196540],[1177632000000, 0.196550],[1177718400000, 0.196160],[1177804800000, 0.196160],[1177891200000, 0.196160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });