How do you readjust the label of a chart js chart?

0

How do I adjust the font size of the label or place a line break? The text is not fully fit, so 1080 monitor fits, but 720 happens that.

Mycode:

<script>varmyChartcaixa=newChart(document.getElementById("caixa-chart"), {
        type: 'pie',
        data: {
            labels:  @Html.Raw(Json.Encode(Model.Select(x => x.Descricao).ToArray())),
            datasets: [{
                data:  @Html.Raw(Json.Encode(Model.Select(x => x.Valor).ToArray())),
                backgroundColor: backgroudColor,
                borderWidth: 1,
            }]
        },
        options: {
            legend: false,
        }
    }); </script>
    
asked by anonymous 06.11.2018 / 13:02

0 answers