$(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: [[1164931200000,1.74901],[1165017600000,1.75747],[1165104000000,1.75747],[1165190400000,1.75747],[1165276800000,1.76133],[1165363200000,1.76512],[1165449600000,1.75891],[1165536000000,1.76232],[1165622400000,1.75049],[1165708800000,1.75049],[1165795200000,1.75049],[1165881600000,1.7455],[1165968000000,1.75355],[1166054400000,1.76248],[1166140800000,1.75407],[1166227200000,1.74503],[1166313600000,1.74503],[1166400000000,1.74503],[1166486400000,1.74172],[1166572800000,1.74344],[1166659200000,1.75493],[1166745600000,1.74944],[1166832000000,1.74347],[1166918400000,1.74347],[1167004800000,1.74347],[1167091200000,1.74347],[1167177600000,1.74347],[1167264000000,1.731],[1167350400000,1.73668],[1167436800000,1.73606]], 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: [[1164931200000, 1.749010],[1164931200000, 1.749010],[1165017600000, 1.757468],[1165104000000, 1.757468],[1165190400000, 1.757468],[1165276800000, 1.761326],[1165363200000, 1.765117],[1165449600000, 1.758907],[1165536000000, 1.762324],[1165622400000, 1.750491],[1165708800000, 1.750491],[1165795200000, 1.750491],[1165881600000, 1.745504],[1165968000000, 1.753551],[1166054400000, 1.762478],[1166140800000, 1.754071],[1166227200000, 1.745025],[1166313600000, 1.745025],[1166400000000, 1.745025],[1166486400000, 1.741723],[1166572800000, 1.743444],[1166659200000, 1.754932],[1166745600000, 1.749445],[1166832000000, 1.743467],[1166918400000, 1.743467],[1167004800000, 1.743467],[1167091200000, 1.743467],[1167177600000, 1.743467],[1167264000000, 1.730996],[1167350400000, 1.736683],[1167436800000, 1.736061]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });