$(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: [[1114905600000,3.08777],[1114992000000,3.08777],[1115078400000,3.08777],[1115164800000,3.08777],[1115251200000,3.08827],[1115337600000,3.08661],[1115424000000,3.07768],[1115510400000,3.07768],[1115596800000,3.07768],[1115683200000,3.07768],[1115769600000,3.07046],[1115856000000,3.07613],[1115942400000,3.05831],[1116028800000,3.04727],[1116115200000,3.04727],[1116201600000,3.04727],[1116288000000,3.04152],[1116374400000,3.04824],[1116460800000,3.05571],[1116547200000,3.05275],[1116633600000,3.04531],[1116720000000,3.04531],[1116806400000,3.04531],[1116892800000,3.04081],[1116979200000,3.05196],[1117065600000,3.04629],[1117152000000,3.04029],[1117238400000,3.0449],[1117324800000,3.0449],[1117411200000,3.0449],[1117497600000,3.03975]], 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, 3.087766],[1114905600000, 3.087766],[1114992000000, 3.087766],[1115078400000, 3.087766],[1115164800000, 3.087766],[1115251200000, 3.088270],[1115337600000, 3.086614],[1115424000000, 3.077685],[1115510400000, 3.077685],[1115596800000, 3.077685],[1115683200000, 3.077685],[1115769600000, 3.070465],[1115856000000, 3.076135],[1115942400000, 3.058306],[1116028800000, 3.047268],[1116115200000, 3.047268],[1116201600000, 3.047268],[1116288000000, 3.041524],[1116374400000, 3.048237],[1116460800000, 3.055712],[1116547200000, 3.052747],[1116633600000, 3.045315],[1116720000000, 3.045315],[1116806400000, 3.045315],[1116892800000, 3.040808],[1116979200000, 3.051964],[1117065600000, 3.046293],[1117152000000, 3.040294],[1117238400000, 3.044896],[1117324800000, 3.044896],[1117411200000, 3.044896],[1117497600000, 3.039749]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });