$(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: [[1114905600000,6.54329],[1114992000000,6.54329],[1115078400000,6.54329],[1115164800000,6.54329],[1115251200000,6.54127],[1115337600000,6.54177],[1115424000000,6.53824],[1115510400000,6.53824],[1115596800000,6.53824],[1115683200000,6.53824],[1115769600000,6.49127],[1115856000000,6.50541],[1115942400000,6.44935],[1116028800000,6.38068],[1116115200000,6.38068],[1116201600000,6.38068],[1116288000000,6.37108],[1116374400000,6.38118],[1116460800000,6.37361],[1116547200000,6.38421],[1116633600000,6.36653],[1116720000000,6.36653],[1116806400000,6.36653],[1116892800000,6.33674],[1116979200000,6.37158],[1117065600000,6.34482],[1117152000000,6.32411],[1117238400000,6.33826],[1117324800000,6.33826],[1117411200000,6.33826],[1117497600000,6.29836]], 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: [[1114905600000, 6.543285],[1114905600000, 6.543285],[1114992000000, 6.543285],[1115078400000, 6.543285],[1115164800000, 6.543285],[1115251200000, 6.541265],[1115337600000, 6.541770],[1115424000000, 6.538235],[1115510400000, 6.538235],[1115596800000, 6.538235],[1115683200000, 6.538235],[1115769600000, 6.491270],[1115856000000, 6.505410],[1115942400000, 6.449355],[1116028800000, 6.380675],[1116115200000, 6.380675],[1116201600000, 6.380675],[1116288000000, 6.371080],[1116374400000, 6.381180],[1116460800000, 6.373605],[1116547200000, 6.384210],[1116633600000, 6.366535],[1116720000000, 6.366535],[1116806400000, 6.366535],[1116892800000, 6.336740],[1116979200000, 6.371585],[1117065600000, 6.344820],[1117152000000, 6.324115],[1117238400000, 6.338255],[1117324800000, 6.338255],[1117411200000, 6.338255],[1117497600000, 6.298360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });