Open satisfazm2bezes opened 4 years ago
@nagix I have the same request. I want to add drop shadows to my line charts but that should not affect my legend. Is there a simple way to disable this for the legend?
@nagix I have the same request. I want to add drop shadows to my line charts but that should not affect my legend. Is there a simple way to disable this for the legend?
What I did was adding a new boolean option named 'legendShadow' which gives you the possibility to enable/disable shadow on legend.
And use it like this:
{ type: 'horizontalBar', label: 'Post', yAxisID: 'y-axis-left', data: dataPost, labels, fill: true, borderColor: '#5b9bd5', backgroundColor: '#5b9bd5', shadowOffsetX: 1, shadowOffsetY: 1, shadowBlur: 7, shadowColor: colorPost, legendShadow: false }
Please find it under: https://github.com/satisfazm2bezes/chartjs-plugin-style
Hope it helps.
@satisfazm2bezes Hello, I'm trying to port this repo to work with chartjs v3. But there are some variables that need to be updated in the code. I was trying to do that, but i have issues exporting a new version with gulp. Somehow the dist
stays empty after gulp build
. Do you happen to know why? Thank you!
Hi,
Is it possible to configure the plugin to not draw the styling on the legend?
Something like this:![image](https://user-images.githubusercontent.com/17852174/77750792-5541eb00-701c-11ea-9de6-1490e96739bc.png)