$(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: [[1164931200000,3.27535],[1165017600000,3.26685],[1165104000000,3.26685],[1165190400000,3.26685],[1165276800000,3.27281],[1165363200000,3.28254],[1165449600000,3.27841],[1165536000000,3.28377],[1165622400000,3.27155],[1165708800000,3.27155],[1165795200000,3.27155],[1165881600000,3.27142],[1165968000000,3.27693],[1166054400000,3.28036],[1166140800000,3.2782],[1166227200000,3.27358],[1166313600000,3.27358],[1166400000000,3.27358],[1166486400000,3.2689],[1166572800000,3.26911],[1166659200000,3.2819],[1166745600000,3.27779],[1166832000000,3.28014],[1166918400000,3.28014],[1167004800000,3.28014],[1167091200000,3.28014],[1167177600000,3.28014],[1167264000000,3.28698],[1167350400000,3.29178],[1167436800000,3.29217]], 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: [[1164931200000, 3.275354],[1164931200000, 3.275354],[1165017600000, 3.266849],[1165104000000, 3.266849],[1165190400000, 3.266849],[1165276800000, 3.272811],[1165363200000, 3.282537],[1165449600000, 3.278412],[1165536000000, 3.283772],[1165622400000, 3.271546],[1165708800000, 3.271546],[1165795200000, 3.271546],[1165881600000, 3.271415],[1165968000000, 3.276933],[1166054400000, 3.280361],[1166140800000, 3.278201],[1166227200000, 3.273583],[1166313600000, 3.273583],[1166400000000, 3.273583],[1166486400000, 3.268895],[1166572800000, 3.269109],[1166659200000, 3.281903],[1166745600000, 3.277787],[1166832000000, 3.280138],[1166918400000, 3.280138],[1167004800000, 3.280138],[1167091200000, 3.280138],[1167177600000, 3.280138],[1167264000000, 3.286984],[1167350400000, 3.291783],[1167436800000, 3.292174]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });