O gráfico Js altera a orientação da etiqueta de texto no eixo Ox
Estou usando a biblioteca chartJS -http://www.chartjs.org/
Se o rótulo do texto for muito grande, o chartJs exibirá o texto a 45 graus. Diga-me como posso alterar a rotação do texto para 30 graus, por exemplo.
Por favor, veja o seguinte:
var data = { labels:['Large Text Very Large','Text1','Text2'],
datasets:[ { label:'DS1',
fillColor:'rgba(228,218,86,0.5)',
strokeColor:'rgba(228,218,86,0.8)',
highlightFill:'rgba(228,218,86,0.75)',
highlightStroke: 'rgba(228,218,86,1)', data:[0,1,0]
}
]
}
var options = {
animation: false
};
//Get the context of the canvas element we want to select
var c = $('#myChart');
var ct = c.get(0).getContext('2d');
var ctx = document.getElementById("myChart").getContext("2d");
/*************************************************************************/
myNewChart = new Chart(ct).Bar(data, options);
Também no jsfiddle:
Obrigado !