You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to change the labels in the legend, so that they show the value next to them. Using regular ChartJS, I'd have to pass a function to generateLabels in
options={legend: {labels: {generateLabels: chart=>{// Do stuff}}}}
In ChartJSCore I can only parse a string to GenerateLabels within the LegendLabel class. It seems quite unclear how I'd achieve my goal. Clarification would be much appreciated, thank you.
The text was updated successfully, but these errors were encountered:
For the generateLabels property just set the string value to whatever you function is, this is then rendered without the standard string double quotes by the decoration [JsonConverter(typeof(PlainJsonStringConverter))].
This maybe isn't obvious in the documentation so I'll update it to make it more explicit.
I'm attempting to change the labels in the legend, so that they show the value next to them. Using regular ChartJS, I'd have to pass a function to generateLabels in
In ChartJSCore I can only parse a string to
GenerateLabels
within theLegendLabel
class. It seems quite unclear how I'd achieve my goal. Clarification would be much appreciated, thank you.The text was updated successfully, but these errors were encountered: