$(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: [[1346457600000,6.40161],[1346544000000,6.40161],[1346630400000,6.40161],[1346716800000,6.40582],[1346803200000,6.41347],[1346889600000,6.40275],[1346976000000,6.41654],[1347062400000,6.4527],[1347148800000,6.4527],[1347235200000,6.4527],[1347321600000,6.46566],[1347408000000,6.49136],[1347494400000,6.50579],[1347580800000,6.50095],[1347667200000,6.55283],[1347753600000,6.55283],[1347840000000,6.55283],[1347926400000,6.52911],[1348012800000,6.51681],[1348099200000,6.52754],[1348185600000,6.52106],[1348272000000,6.532],[1348358400000,6.532],[1348444800000,6.532],[1348531200000,6.50479],[1348617600000,6.51737],[1348704000000,6.48006],[1348790400000,6.50784],[1348876800000,6.5213],[1348963200000,6.5213]], 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: [[1346457600000, 6.401608],[1346457600000, 6.401608],[1346544000000, 6.401608],[1346630400000, 6.401608],[1346716800000, 6.405817],[1346803200000, 6.413469],[1346889600000, 6.402748],[1346976000000, 6.416536],[1347062400000, 6.452701],[1347148800000, 6.452701],[1347235200000, 6.452701],[1347321600000, 6.465656],[1347408000000, 6.491362],[1347494400000, 6.505789],[1347580800000, 6.500953],[1347667200000, 6.552829],[1347753600000, 6.552829],[1347840000000, 6.552829],[1347926400000, 6.529113],[1348012800000, 6.516809],[1348099200000, 6.527541],[1348185600000, 6.521056],[1348272000000, 6.532001],[1348358400000, 6.532001],[1348444800000, 6.532001],[1348531200000, 6.504794],[1348617600000, 6.517369],[1348704000000, 6.480061],[1348790400000, 6.507835],[1348876800000, 6.521295],[1348963200000, 6.521295]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });