$(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: [[1146441600000,3.18903],[1146528000000,3.18903],[1146614400000,3.18903],[1146700800000,3.20662],[1146787200000,3.19658],[1146873600000,3.20356],[1146960000000,3.20356],[1147046400000,3.20356],[1147132800000,3.20356],[1147219200000,3.20356],[1147305600000,3.22654],[1147392000000,3.22061],[1147478400000,3.23122],[1147564800000,3.23122],[1147651200000,3.23122],[1147737600000,3.19306],[1147824000000,3.2014],[1147910400000,3.21827],[1147996800000,3.19456],[1148083200000,3.18167],[1148169600000,3.18167],[1148256000000,3.18167],[1148342400000,3.17505],[1148428800000,3.20058],[1148515200000,3.1825],[1148601600000,3.19238],[1148688000000,3.1964],[1148774400000,3.1964],[1148860800000,3.1964],[1148947200000,3.19837],[1149033600000,3.20546]], 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: [[1146441600000, 3.189032],[1146441600000, 3.189032],[1146528000000, 3.189032],[1146614400000, 3.189032],[1146700800000, 3.206615],[1146787200000, 3.196582],[1146873600000, 3.203560],[1146960000000, 3.203560],[1147046400000, 3.203560],[1147132800000, 3.203560],[1147219200000, 3.203560],[1147305600000, 3.226536],[1147392000000, 3.220613],[1147478400000, 3.231219],[1147564800000, 3.231219],[1147651200000, 3.231219],[1147737600000, 3.193064],[1147824000000, 3.201397],[1147910400000, 3.218270],[1147996800000, 3.194556],[1148083200000, 3.181669],[1148169600000, 3.181669],[1148256000000, 3.181669],[1148342400000, 3.175047],[1148428800000, 3.200585],[1148515200000, 3.182500],[1148601600000, 3.192385],[1148688000000, 3.196402],[1148774400000, 3.196402],[1148860800000, 3.196402],[1148947200000, 3.198367],[1149033600000, 3.205465]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });