1.0.6 • Published 2 years ago
chartjs-plugin-roughness v1.0.6
chartjs-plugin-roughness

Usage
h5
import 'chartjs-plugin-roughness'
new Chart(..., {
...,
plugins: {
roughness: {
disabled: true // enable by default if imported chartjs-plugin-roughness
// more rough options
}
}
})SSR
@napi-rs/canvas is supported for SSR, see demo.
Rough Options
See rough options for more options.
Caution
- This package should be imported before
chart.js. - This package override
BarElement.drawmethod if roughness was enabled. - This package override
Fillerhooks for clearing stroke colors to prevent area border. - This package override
beginPath,closePath,fill,stroke,moveTo,lineTo,arcTo,arc,quadraticCurveTo,rect,ellipse,bezierCurveTowhile roughness chart rendering.ellipsewas not implemented byroughjs, you should provide your own polyfill if you want this feature. - This package override
window.Path2Dclass and should act same as original. - This package override
TooltupPluginclass to skip drawing tooltip background using roughness. Set tooltip plugin optionpreventSkipBackgroundRoughnesstotrueto prevent it.