I'm looking to change the font size and legend square of a Primefaces chart via JavaScript.
My code:
<script type="text/javascript">
function alterarGrafico() {
this.cfg.highlighter = {
tooltipAxes : 'y'
};
this.cfg.axes.yaxis.tickOptions = {
textColor : '#000000',
formatString : "%.0f"
};
this.cfg.axes.yaxis.labelOptions = {
textColor : '#000000'
};
this.cfg.axes.xaxis.labelOptions = {
textColor : '#000000'
};
}
</script>