$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1057017600000,6.08633],[1057104000000,6.15138],[1057190400000,6.10956],[1057276800000,6.11424],[1057363200000,6.11424],[1057449600000,6.11424],[1057536000000,6.05761],[1057622400000,6.03936],[1057708800000,6.03936],[1057795200000,6.04778],[1057881600000,6.03338],[1057968000000,6.03338],[1058054400000,6.03338],[1058140800000,6.02463],[1058227200000,6.03529],[1058313600000,6.03529],[1058400000000,5.98826],[1058486400000,5.97428],[1058572800000,5.97428],[1058659200000,5.97428],[1058745600000,6.0164],[1058832000000,6.04786],[1058918400000,6.07878],[1059004800000,6.11398],[1059091200000,6.11931],[1059177600000,6.11931],[1059264000000,6.11931],[1059350400000,6.1257],[1059436800000,6.11131],[1059523200000,6.11131],[1059609600000,6.08892]], 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: [[1057017600000, 6.086330],[1057017600000, 6.086330],[1057104000000, 6.151380],[1057190400000, 6.109560],[1057276800000, 6.114240],[1057363200000, 6.114240],[1057449600000, 6.114240],[1057536000000, 6.057610],[1057622400000, 6.039360],[1057708800000, 6.039360],[1057795200000, 6.047780],[1057881600000, 6.033380],[1057968000000, 6.033380],[1058054400000, 6.033380],[1058140800000, 6.024630],[1058227200000, 6.035290],[1058313600000, 6.035290],[1058400000000, 5.988260],[1058486400000, 5.974280],[1058572800000, 5.974280],[1058659200000, 5.974280],[1058745600000, 6.016400],[1058832000000, 6.047860],[1058918400000, 6.078780],[1059004800000, 6.113980],[1059091200000, 6.119310],[1059177600000, 6.119310],[1059264000000, 6.119310],[1059350400000, 6.125700],[1059436800000, 6.111310],[1059523200000, 6.111310],[1059609600000, 6.088920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });