chartjs options error

Closed
0
0
The changes we have made in the chartjs options text legend cannot be updated on the chartjs application.

font colors do not change. Legend radius cannot be given.
  • You must to post comments
0
0

Hi Onur,

Thank you for reporting this issue.

This will be logged as an enhancement and will be added to ChartJS3 and other compatible ChartJS versions.

The correct syntax for this kind of implementation is the following:
chartJS1.Options.Plugins.Legend.Labels = new CustomLegendLabels()
{
UsePointStyle = true,
BoxWidth = 100,
};

CustomLegendLabels in this case is a class that extends the OptionsLegendLabels base class.

I have attached a sample.

HTH,
Alaa

//

  • Onur DOĞAN
    hi alaa, Thank you for your return. I tested the solution and it is successful. good luck
  • You must to post comments
Showing 1 result