$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1277942400000,5.65303],[1278028800000,5.66029],[1278115200000,5.67725],[1278201600000,5.67725],[1278288000000,5.67725],[1278374400000,5.6754],[1278460800000,5.69171],[1278547200000,5.68477],[1278633600000,5.72222],[1278720000000,5.72413],[1278806400000,5.72413],[1278892800000,5.72413],[1278979200000,5.71686],[1279065600000,5.72235],[1279152000000,5.74295],[1279238400000,5.75044],[1279324800000,5.73953],[1279411200000,5.73953],[1279497600000,5.73953],[1279584000000,5.73043],[1279670400000,5.73766],[1279756800000,5.74883],[1279843200000,5.75002],[1279929600000,5.75923],[1280016000000,5.75923],[1280102400000,5.75923],[1280188800000,5.78102],[1280275200000,5.80255],[1280361600000,5.78063],[1280448000000,5.79529],[1280534400000,5.79857]], 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, 5.653027],[1277942400000, 5.653027],[1278028800000, 5.660288],[1278115200000, 5.677245],[1278201600000, 5.677245],[1278288000000, 5.677245],[1278374400000, 5.675401],[1278460800000, 5.691713],[1278547200000, 5.684770],[1278633600000, 5.722224],[1278720000000, 5.724129],[1278806400000, 5.724129],[1278892800000, 5.724129],[1278979200000, 5.716860],[1279065600000, 5.722346],[1279152000000, 5.742951],[1279238400000, 5.750438],[1279324800000, 5.739529],[1279411200000, 5.739529],[1279497600000, 5.739529],[1279584000000, 5.730431],[1279670400000, 5.737665],[1279756800000, 5.748833],[1279843200000, 5.750025],[1279929600000, 5.759230],[1280016000000, 5.759230],[1280102400000, 5.759230],[1280188800000, 5.781021],[1280275200000, 5.802555],[1280361600000, 5.780634],[1280448000000, 5.795294],[1280534400000, 5.798573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });