$(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: [[1318032000000,6.15901],[1318118400000,6.15901],[1318204800000,6.15901],[1318291200000,6.22869],[1318377600000,6.20443],[1318464000000,6.24273],[1318550400000,6.23476],[1318636800000,6.28219],[1318723200000,6.28219],[1318809600000,6.28219],[1318896000000,6.29358],[1318982400000,6.26044],[1319068800000,6.3253],[1319155200000,6.29296],[1319241600000,6.26095],[1319328000000,6.26095],[1319414400000,6.26095],[1319500800000,6.28298],[1319587200000,6.32011],[1319673600000,6.29089],[1319760000000,6.37887]], 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: [[1318032000000, 6.159014],[1318032000000, 6.159014],[1318118400000, 6.159014],[1318204800000, 6.159014],[1318291200000, 6.228686],[1318377600000, 6.204434],[1318464000000, 6.242732],[1318550400000, 6.234763],[1318636800000, 6.282189],[1318723200000, 6.282189],[1318809600000, 6.282189],[1318896000000, 6.293576],[1318982400000, 6.260442],[1319068800000, 6.325303],[1319155200000, 6.292959],[1319241600000, 6.260949],[1319328000000, 6.260949],[1319414400000, 6.260949],[1319500800000, 6.282978],[1319587200000, 6.320111],[1319673600000, 6.290890],[1319760000000, 6.378874]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });