$(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: [[1301616000000,0.27914],[1301702400000,0.28059],[1301788800000,0.28059],[1301875200000,0.28059],[1301961600000,0.28208],[1302048000000,0.28133],[1302134400000,0.28227],[1302220800000,0.28215],[1302307200000,0.28323],[1302393600000,0.28323],[1302480000000,0.28323],[1302566400000,0.28467],[1302652800000,0.28308],[1302739200000,0.28346],[1302825600000,0.28264],[1302912000000,0.28231],[1302998400000,0.28231],[1303084800000,0.28231],[1303171200000,0.28296],[1303257600000,0.28026],[1303344000000,0.28301],[1303430400000,0.28509],[1303516800000,0.28509],[1303603200000,0.28509],[1303689600000,0.28509],[1303776000000,0.28509],[1303862400000,0.28554],[1303948800000,0.28741],[1304035200000,0.28968],[1304121600000,0.28962]], 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: [[1301616000000, 0.279140],[1301616000000, 0.279140],[1301702400000, 0.280590],[1301788800000, 0.280590],[1301875200000, 0.280590],[1301961600000, 0.282080],[1302048000000, 0.281330],[1302134400000, 0.282270],[1302220800000, 0.282150],[1302307200000, 0.283230],[1302393600000, 0.283230],[1302480000000, 0.283230],[1302566400000, 0.284670],[1302652800000, 0.283080],[1302739200000, 0.283460],[1302825600000, 0.282640],[1302912000000, 0.282310],[1302998400000, 0.282310],[1303084800000, 0.282310],[1303171200000, 0.282960],[1303257600000, 0.280260],[1303344000000, 0.283010],[1303430400000, 0.285090],[1303516800000, 0.285090],[1303603200000, 0.285090],[1303689600000, 0.285090],[1303776000000, 0.285090],[1303862400000, 0.285540],[1303948800000, 0.287410],[1304035200000, 0.289680],[1304121600000, 0.289620]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });