$(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: [[1191196800000,1.8978],[1191283200000,1.90641],[1191369600000,1.89784],[1191456000000,1.89939],[1191542400000,1.88938],[1191628800000,1.89813],[1191715200000,1.89813],[1191801600000,1.89813],[1191888000000,1.89909],[1191974400000,1.88991],[1192060800000,1.90677],[1192147200000,1.91878],[1192233600000,1.91589],[1192320000000,1.91589],[1192406400000,1.91589],[1192492800000,1.93862],[1192579200000,1.92111],[1192665600000,1.93701],[1192752000000,1.94599],[1192838400000,1.95859],[1192924800000,1.95859],[1193011200000,1.95859],[1193097600000,1.93934],[1193184000000,1.96846],[1193270400000,1.96617],[1193356800000,1.99202],[1193443200000,2.00058],[1193529600000,2.00058],[1193616000000,2.00058],[1193702400000,2.00504],[1193788800000,1.99982]], 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: [[1191196800000, 1.897799],[1191196800000, 1.897799],[1191283200000, 1.906408],[1191369600000, 1.897836],[1191456000000, 1.899387],[1191542400000, 1.889381],[1191628800000, 1.898131],[1191715200000, 1.898131],[1191801600000, 1.898131],[1191888000000, 1.899091],[1191974400000, 1.889913],[1192060800000, 1.906774],[1192147200000, 1.918784],[1192233600000, 1.915885],[1192320000000, 1.915885],[1192406400000, 1.915885],[1192492800000, 1.938618],[1192579200000, 1.921107],[1192665600000, 1.937009],[1192752000000, 1.945993],[1192838400000, 1.958588],[1192924800000, 1.958588],[1193011200000, 1.958588],[1193097600000, 1.939338],[1193184000000, 1.968461],[1193270400000, 1.966169],[1193356800000, 1.992018],[1193443200000, 2.000584],[1193529600000, 2.000584],[1193616000000, 2.000584],[1193702400000, 2.005036],[1193788800000, 1.999817]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });