$(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: [[1136246400000,1.54339],[1136332800000,1.54339],[1136419200000,1.54339],[1136505600000,1.60702],[1136592000000,1.60254],[1136678400000,1.60254],[1136764800000,1.60254],[1136851200000,1.60254],[1136937600000,1.60883],[1137024000000,1.61741],[1137110400000,1.61836],[1137196800000,1.59413],[1137283200000,1.59413],[1137369600000,1.59413],[1137456000000,1.60569],[1137542400000,1.59076],[1137628800000,1.58828],[1137715200000,1.5871],[1137801600000,1.58785],[1137888000000,1.58785],[1137974400000,1.58785],[1138060800000,1.61392],[1138147200000,1.61331],[1138233600000,1.63038],[1138320000000,1.6165],[1138406400000,1.60711],[1138492800000,1.60711],[1138579200000,1.60711],[1138665600000,1.59781]], 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: [[1136246400000, 1.543390],[1136246400000, 1.543390],[1136332800000, 1.543390],[1136419200000, 1.543390],[1136505600000, 1.607024],[1136592000000, 1.602541],[1136678400000, 1.602541],[1136764800000, 1.602541],[1136851200000, 1.602541],[1136937600000, 1.608831],[1137024000000, 1.617413],[1137110400000, 1.618357],[1137196800000, 1.594131],[1137283200000, 1.594131],[1137369600000, 1.594131],[1137456000000, 1.605691],[1137542400000, 1.590764],[1137628800000, 1.588277],[1137715200000, 1.587105],[1137801600000, 1.587853],[1137888000000, 1.587853],[1137974400000, 1.587853],[1138060800000, 1.613923],[1138147200000, 1.613308],[1138233600000, 1.630376],[1138320000000, 1.616496],[1138406400000, 1.607106],[1138492800000, 1.607106],[1138579200000, 1.607106],[1138665600000, 1.597813]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });