Gracie williams
Gracie williams

Reputation: 1145

Auto adjust label positions

I am adding custom chart labels using setResultTableFormatter

 line[key].setResultTableFormatter((builder, series, xValue, yValue) => {
     return builder
            .addRow(name)
            .addRow(yValue.toFixed(2))
            .addRow(timedata[xValue.toFixed(0)])

});

This is working fine in Dashboards with 4 charts.But if there is 6 charts in dashboard..Label is hiding to the right side , If i place cursor to right side of the page.PLease check below example.

enter image description here

Upvotes: 0

Views: 107

Answers (1)

Niilo Keinänen
Niilo Keinänen

Reputation: 2582

Please use chart.setPadding to add padding on the problematic sides

chart.setPadding({ right: 60 })

Upvotes: 1

Related Questions