$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1301616000000,8.20368],[1301702400000,8.22463],[1301788800000,8.22463],[1301875200000,8.22463],[1301961600000,8.26478],[1302048000000,8.25007],[1302134400000,8.30503],[1302220800000,8.30667],[1302307200000,8.34726],[1302393600000,8.34726],[1302480000000,8.34726],[1302566400000,8.32244],[1302652800000,8.31566],[1302739200000,8.28663],[1302825600000,8.2508],[1302912000000,8.26224],[1302998400000,8.26224],[1303084800000,8.26224],[1303171200000,8.26086],[1303257600000,8.31906],[1303344000000,8.37325],[1303430400000,8.4021],[1303516800000,8.4021],[1303603200000,8.4021],[1303689600000,8.4021],[1303776000000,8.4021],[1303862400000,8.35884],[1303948800000,8.36458],[1304035200000,8.37825],[1304121600000,8.39344]], 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, 8.203679],[1301616000000, 8.203679],[1301702400000, 8.224635],[1301788800000, 8.224635],[1301875200000, 8.224635],[1301961600000, 8.264784],[1302048000000, 8.250069],[1302134400000, 8.305032],[1302220800000, 8.306667],[1302307200000, 8.347256],[1302393600000, 8.347256],[1302480000000, 8.347256],[1302566400000, 8.322436],[1302652800000, 8.315658],[1302739200000, 8.286631],[1302825600000, 8.250802],[1302912000000, 8.262239],[1302998400000, 8.262239],[1303084800000, 8.262239],[1303171200000, 8.260862],[1303257600000, 8.319056],[1303344000000, 8.373246],[1303430400000, 8.402097],[1303516800000, 8.402097],[1303603200000, 8.402097],[1303689600000, 8.402097],[1303776000000, 8.402097],[1303862400000, 8.358838],[1303948800000, 8.364582],[1304035200000, 8.378253],[1304121600000, 8.393445]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });