$(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: [[1168041600000,3.28989],[1168128000000,3.28989],[1168214400000,3.28989],[1168300800000,3.28989],[1168387200000,3.28655],[1168473600000,3.28489],[1168560000000,3.27551],[1168646400000,3.26889],[1168732800000,3.26889],[1168819200000,3.26889],[1168905600000,3.27546],[1168992000000,3.28113],[1169078400000,3.283],[1169164800000,3.28498],[1169251200000,3.28619],[1169337600000,3.28619],[1169424000000,3.28619],[1169510400000,3.28374],[1169596800000,3.29375],[1169683200000,3.28853],[1169769600000,3.28862],[1169856000000,3.28328],[1169942400000,3.28328],[1170028800000,3.28328],[1170115200000,3.27911],[1170201600000,3.28364]], 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: [[1168041600000, 3.289892],[1168041600000, 3.289892],[1168128000000, 3.289892],[1168214400000, 3.289892],[1168300800000, 3.289892],[1168387200000, 3.286552],[1168473600000, 3.284890],[1168560000000, 3.275512],[1168646400000, 3.268885],[1168732800000, 3.268885],[1168819200000, 3.268885],[1168905600000, 3.275464],[1168992000000, 3.281132],[1169078400000, 3.282996],[1169164800000, 3.284979],[1169251200000, 3.286190],[1169337600000, 3.286190],[1169424000000, 3.286190],[1169510400000, 3.283744],[1169596800000, 3.293753],[1169683200000, 3.288531],[1169769600000, 3.288620],[1169856000000, 3.283276],[1169942400000, 3.283276],[1170028800000, 3.283276],[1170115200000, 3.279112],[1170201600000, 3.283639]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });