Adeel
Adeel

Reputation: 19

how to change point style legend to diamond in chart js

I want to change the point style of my legend to diamond but don't know how to do it. I am attaching the jsfiddle file in the comment.

Upvotes: 0

Views: 640

Answers (1)

thisdotutkarsh
thisdotutkarsh

Reputation: 980

The pointStyle should be updated to rectRot instead of rect. Please read more about it here

Updated JSFiddle

Edit: For adding a '%' sign at the end of each tooltip label, add a tooltip callback as shown in the following JSFiddle

Upvotes: 1

Related Questions