How to change the caption of a Primefaces line chart?

Asked

Viewed 121 times

0

I’m looking to change the font size and the square of the caption 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>

1 answer

0


I got it, I just added the code:

this.cfg.legend = {               
    how : false,
    show : true,
    border : 'none',
    location : 'n',
    fontSize: '150%',
    renderer : $.jqplot.EnhancedLegendRenderer
} 
  • But I still haven’t been able to enlarge the square size of the caption

Browser other questions tagged

You are not signed in. Login or sign up in order to post.