$(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: [[1296518400000,6.20138],[1296604800000,6.22814],[1296691200000,6.24256],[1296777600000,6.24171],[1296864000000,6.23821],[1296950400000,6.23821],[1297036800000,6.23821],[1297123200000,6.22996],[1297209600000,6.24417],[1297296000000,6.23013],[1297382400000,6.21029],[1297468800000,6.18896],[1297555200000,6.18896],[1297641600000,6.18896],[1297728000000,6.19513],[1297814400000,6.20686],[1297900800000,6.20438],[1297987200000,6.21333],[1298073600000,6.23468],[1298160000000,6.23468],[1298246400000,6.23468],[1298332800000,6.22421],[1298419200000,6.20274],[1298505600000,6.21783],[1298592000000,6.20489],[1298678400000,6.22248],[1298764800000,6.22248],[1298851200000,6.22248]], 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: [[1296518400000, 6.201381],[1296518400000, 6.201381],[1296604800000, 6.228139],[1296691200000, 6.242556],[1296777600000, 6.241706],[1296864000000, 6.238212],[1296950400000, 6.238212],[1297036800000, 6.238212],[1297123200000, 6.229957],[1297209600000, 6.244168],[1297296000000, 6.230135],[1297382400000, 6.210294],[1297468800000, 6.188956],[1297555200000, 6.188956],[1297641600000, 6.188956],[1297728000000, 6.195128],[1297814400000, 6.206864],[1297900800000, 6.204381],[1297987200000, 6.213331],[1298073600000, 6.234678],[1298160000000, 6.234678],[1298246400000, 6.234678],[1298332800000, 6.224208],[1298419200000, 6.202739],[1298505600000, 6.217828],[1298592000000, 6.204891],[1298678400000, 6.222480],[1298764800000, 6.222480],[1298851200000, 6.222480]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });