-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
I would like to include new options to change the symbol used on chart Legend. I also want this to be independant from the pointStyle value (e.g we can keep 'circle' as line point, but use 'line' as legend symbol).
Potential solution:
add legendSymbol value at options/legend/labels and datasets levels.
legend selection priority selection
- If usePointStyle = true -> use pointStyle value (circle by default) for legend symbol
- if legendSymbol exists at dataset level -> use that value
- if legendSymbol exists at /legend/labels level -> use that value
- Default value: rectLg
Available value: same as pointStyle + rectLg, lineLg and rectRoundedLg.
*Lg symbols are usign boxWidth for Width while others are usign fontSize * Math.SQRT2
proposed implementation:
https://github.com/touletan/Chart.js/