$(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: [[1257033600000,5.71618],[1257120000000,5.71618],[1257206400000,5.7154],[1257292800000,5.71594],[1257379200000,5.73802],[1257465600000,5.74451],[1257552000000,5.7393],[1257638400000,5.7393],[1257724800000,5.7393],[1257811200000,5.76329],[1257897600000,5.75228],[1257984000000,5.76396],[1258070400000,5.75984],[1258156800000,5.76689],[1258243200000,5.76689],[1258329600000,5.76689],[1258416000000,5.76953],[1258502400000,5.76075],[1258588800000,5.77614],[1258675200000,5.74697],[1258761600000,5.74732],[1258848000000,5.74732],[1258934400000,5.74732],[1259020800000,5.77137],[1259107200000,5.7673],[1259193600000,5.78471],[1259280000000,5.77527],[1259366400000,5.75026],[1259452800000,5.75026],[1259539200000,5.75026]], 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: [[1257033600000, 5.716183],[1257033600000, 5.716183],[1257120000000, 5.716183],[1257206400000, 5.715404],[1257292800000, 5.715942],[1257379200000, 5.738018],[1257465600000, 5.744511],[1257552000000, 5.739297],[1257638400000, 5.739297],[1257724800000, 5.739297],[1257811200000, 5.763293],[1257897600000, 5.752277],[1257984000000, 5.763955],[1258070400000, 5.759837],[1258156800000, 5.766894],[1258243200000, 5.766894],[1258329600000, 5.766894],[1258416000000, 5.769533],[1258502400000, 5.760746],[1258588800000, 5.776140],[1258675200000, 5.746969],[1258761600000, 5.747322],[1258848000000, 5.747322],[1258934400000, 5.747322],[1259020800000, 5.771370],[1259107200000, 5.767302],[1259193600000, 5.784714],[1259280000000, 5.775275],[1259366400000, 5.750257],[1259452800000, 5.750257],[1259539200000, 5.750257]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });