$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1301616000000,7.96],[1301702400000,7.96],[1301788800000,7.96],[1301875200000,7.96],[1301961600000,7.9624],[1302048000000,7.9647],[1302134400000,7.9647],[1302220800000,7.9647],[1302307200000,7.9647],[1302393600000,7.9647],[1302480000000,7.9647],[1302566400000,7.9638],[1302652800000,7.9674],[1302739200000,7.9693],[1302825600000,7.9672],[1302912000000,7.9672],[1302998400000,7.9672],[1303084800000,7.9672],[1303171200000,7.9692],[1303257600000,7.9654],[1303344000000,7.9654],[1303430400000,7.9654],[1303516800000,7.9654],[1303603200000,7.9654],[1303689600000,7.9654],[1303776000000,7.9654],[1303862400000,7.9654],[1303948800000,7.9654],[1304035200000,7.9654],[1304121600000,7.9653]], 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, 7.960000],[1301616000000, 7.960000],[1301702400000, 7.960000],[1301788800000, 7.960000],[1301875200000, 7.960000],[1301961600000, 7.962400],[1302048000000, 7.964700],[1302134400000, 7.964700],[1302220800000, 7.964700],[1302307200000, 7.964700],[1302393600000, 7.964700],[1302480000000, 7.964700],[1302566400000, 7.963800],[1302652800000, 7.967400],[1302739200000, 7.969300],[1302825600000, 7.967200],[1302912000000, 7.967200],[1302998400000, 7.967200],[1303084800000, 7.967200],[1303171200000, 7.969200],[1303257600000, 7.965400],[1303344000000, 7.965400],[1303430400000, 7.965400],[1303516800000, 7.965400],[1303603200000, 7.965400],[1303689600000, 7.965400],[1303776000000, 7.965400],[1303862400000, 7.965400],[1303948800000, 7.965400],[1304035200000, 7.965400],[1304121600000, 7.965300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });