2013-11-03 25 views
0

我有這個圖表,看看日期!有一起。我如何修復Google圖表中的標籤?

我要像這些

enter image description here

我沒有有CSS在我的PHP或HTML

我使用的代碼創建圖表

function drawCountShopsByCategory(datos) { 
    var options5 = { 
     is3D : 'true', 
     width : 900, 
     height : 600 
    }; 
    var chart5 = new google.visualization.ColumnChart(document.getElementById('CountShopsByCategory')); 
    chart5.draw(new google.visualization.DataTable(datos), options5); 
} 

謝謝!

回答

0
function drawCountShopsByCategory(datos) { 
    var options5 = { 
     title : 'Cantidad de comercios por categorías', 
     is3D : 'true', 
     width : 900, 
     hAxis: {textPosition: 'out', showTextEvery: 1, slantedText: true, textStyle: { color: '', fontSize: 15 } }, 
     height :600 
    }; 
    var chart5 = new google.visualization.ColumnChart(document.getElementById('CountShopsByCategory')); 
    chart5.draw(new google.visualization.DataTable(datos), options5); 
} 

將此行添加到選項中!

hAxis:{textPosition: '出',showTextEvery:1,slantedText:真,TEXTSTYLE:{顏色: '',fontSize的:15}}