$(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: [[1391212800000,2.54268],[1391299200000,2.54268],[1391385600000,2.54268],[1391472000000,2.55408],[1391558400000,2.57004],[1391644800000,2.5808],[1391731200000,2.80598],[1391817600000,2.76446],[1391904000000,2.76446],[1391990400000,2.76446],[1392076800000,2.79043],[1392163200000,2.79592],[1392249600000,2.78599],[1392336000000,2.83209],[1392422400000,2.85421],[1392508800000,2.85421],[1392595200000,2.85421],[1392681600000,2.85594],[1392768000000,2.87158],[1392854400000,2.89339],[1392940800000,2.89786],[1393027200000,2.94072],[1393113600000,2.94072],[1393200000000,2.94072],[1393286400000,2.98554],[1393372800000,3.1224],[1393459200000,3.13962],[1393545600000,3.26415]], 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: [[1391212800000, 2.542680],[1391212800000, 2.542680],[1391299200000, 2.542680],[1391385600000, 2.542680],[1391472000000, 2.554082],[1391558400000, 2.570041],[1391644800000, 2.580803],[1391731200000, 2.805980],[1391817600000, 2.764461],[1391904000000, 2.764461],[1391990400000, 2.764461],[1392076800000, 2.790435],[1392163200000, 2.795920],[1392249600000, 2.785987],[1392336000000, 2.832095],[1392422400000, 2.854207],[1392508800000, 2.854207],[1392595200000, 2.854207],[1392681600000, 2.855943],[1392768000000, 2.871583],[1392854400000, 2.893386],[1392940800000, 2.897864],[1393027200000, 2.940716],[1393113600000, 2.940716],[1393200000000, 2.940716],[1393286400000, 2.985541],[1393372800000, 3.122398],[1393459200000, 3.139619],[1393545600000, 3.264150]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });