$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1301616000000,2.81972],[1301702400000,2.78633],[1301788800000,2.78633],[1301875200000,2.78633],[1301961600000,2.81177],[1302048000000,2.81086],[1302134400000,2.77759],[1302220800000,2.86152],[1302307200000,2.89938],[1302393600000,2.89938],[1302480000000,2.89938],[1302566400000,2.88999],[1302652800000,2.90157],[1302739200000,2.91782],[1302825600000,2.90279],[1302912000000,2.91702],[1302998400000,2.91702],[1303084800000,2.91702],[1303171200000,2.86673],[1303257600000,2.86342],[1303344000000,2.9106],[1303430400000,2.94147],[1303516800000,2.94147],[1303603200000,2.94147],[1303689600000,2.94147],[1303776000000,2.94147],[1303862400000,2.95959],[1303948800000,2.97339],[1304035200000,2.9914],[1304121600000,3.00753]], 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, 2.819721],[1301616000000, 2.819721],[1301702400000, 2.786335],[1301788800000, 2.786335],[1301875200000, 2.786335],[1301961600000, 2.811769],[1302048000000, 2.810860],[1302134400000, 2.777593],[1302220800000, 2.861522],[1302307200000, 2.899384],[1302393600000, 2.899384],[1302480000000, 2.899384],[1302566400000, 2.889993],[1302652800000, 2.901575],[1302739200000, 2.917822],[1302825600000, 2.902789],[1302912000000, 2.917020],[1302998400000, 2.917020],[1303084800000, 2.917020],[1303171200000, 2.866727],[1303257600000, 2.863420],[1303344000000, 2.910600],[1303430400000, 2.941468],[1303516800000, 2.941468],[1303603200000, 2.941468],[1303689600000, 2.941468],[1303776000000, 2.941468],[1303862400000, 2.959590],[1303948800000, 2.973393],[1304035200000, 2.991398],[1304121600000, 3.007530]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });