"captions" node in the configuration #53
stockiNail
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
In my implementation, I have removed the TreemapElement.defaults = {
borderSkipped: undefined,
borderWidth: undefined,
dividerCapStyle: 'butt',
dividerColor: 'black',
dividerDash: undefined,
dividerDashOffset: 0,
dividerWidth: 0,
groupDividers: false,
spacing: undefined,
label: undefined,
rtl: undefined,
captions: {
align: undefined,
color: undefined,
display: true,
font: {},
padding: 3
},
labels: {
align: 'center',
color: undefined,
display: false,
formatter: (ctx) => ctx.raw.g ? [ctx.raw.g, ctx.raw.v] : ctx.raw.v,
font: {},
position: 'middle',
padding: 3
}
}; |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks good, I'd be happy to review a PR for that! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As done by PR #51, I think it could be helpful to configure also the captions.
This is how the config will look like:
The options
groupLabels
should be removed in favor tocaptions.display
.I have already implemented in my fork and I'm testing it.
Let me know if makes sense.
Beta Was this translation helpful? Give feedback.
All reactions