$(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: [[1277942400000,9.70059],[1278028800000,9.74985],[1278115200000,9.9261],[1278201600000,9.9261],[1278288000000,9.9261],[1278374400000,9.91152],[1278460800000,9.94798],[1278547200000,9.93698],[1278633600000,10.0087],[1278720000000,9.98803],[1278806400000,9.98803],[1278892800000,9.98803],[1278979200000,9.9359],[1279065600000,9.93228],[1279152000000,10.0375],[1279238400000,10.1351],[1279324800000,10.2697],[1279411200000,10.2697],[1279497600000,10.2697],[1279584000000,10.2351],[1279670400000,10.1442],[1279756800000,10.122],[1279843200000,10.1476],[1279929600000,10.1835],[1280016000000,10.1835],[1280102400000,10.1835],[1280188800000,10.2093],[1280275200000,10.2885],[1280361600000,10.2548],[1280448000000,10.3156],[1280534400000,10.2826]], 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: [[1277942400000, 9.700594],[1277942400000, 9.700594],[1278028800000, 9.749845],[1278115200000, 9.926095],[1278201600000, 9.926095],[1278288000000, 9.926095],[1278374400000, 9.911520],[1278460800000, 9.947976],[1278547200000, 9.936978],[1278633600000, 10.008743],[1278720000000, 9.988032],[1278806400000, 9.988032],[1278892800000, 9.988032],[1278979200000, 9.935903],[1279065600000, 9.932275],[1279152000000, 10.037530],[1279238400000, 10.135146],[1279324800000, 10.269740],[1279411200000, 10.269740],[1279497600000, 10.269740],[1279584000000, 10.235123],[1279670400000, 10.144191],[1279756800000, 10.121969],[1279843200000, 10.147645],[1279929600000, 10.183471],[1280016000000, 10.183471],[1280102400000, 10.183471],[1280188800000, 10.209283],[1280275200000, 10.288511],[1280361600000, 10.254845],[1280448000000, 10.315623],[1280534400000, 10.282610]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });