$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1301616000000,1.51659],[1301702400000,1.50961],[1301788800000,1.50961],[1301875200000,1.50961],[1301961600000,1.52057],[1302048000000,1.51299],[1302134400000,1.52738],[1302220800000,1.52552],[1302307200000,1.53811],[1302393600000,1.53811],[1302480000000,1.53811],[1302566400000,1.54141],[1302652800000,1.54575],[1302739200000,1.54858],[1302825600000,1.5383],[1302912000000,1.54364],[1302998400000,1.54364],[1303084800000,1.54364],[1303171200000,1.52529],[1303257600000,1.52758],[1303344000000,1.55034],[1303430400000,1.55777],[1303516800000,1.55777],[1303603200000,1.55777],[1303689600000,1.55777],[1303776000000,1.55777],[1303862400000,1.56144],[1303948800000,1.56706],[1304035200000,1.58018],[1304121600000,1.58716]], 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, 1.516592],[1301616000000, 1.516592],[1301702400000, 1.509607],[1301788800000, 1.509607],[1301875200000, 1.509607],[1301961600000, 1.520573],[1302048000000, 1.512986],[1302134400000, 1.527380],[1302220800000, 1.525523],[1302307200000, 1.538106],[1302393600000, 1.538106],[1302480000000, 1.538106],[1302566400000, 1.541415],[1302652800000, 1.545751],[1302739200000, 1.548577],[1302825600000, 1.538300],[1302912000000, 1.543638],[1302998400000, 1.543638],[1303084800000, 1.543638],[1303171200000, 1.525285],[1303257600000, 1.527585],[1303344000000, 1.550335],[1303430400000, 1.557767],[1303516800000, 1.557767],[1303603200000, 1.557767],[1303689600000, 1.557767],[1303776000000, 1.557767],[1303862400000, 1.561439],[1303948800000, 1.567055],[1304035200000, 1.580177],[1304121600000, 1.587164]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });