Bubble Pack Chart Options
Problem:
I have few questions about the Bubble Pack Chart:
- Is it possible to specify data that will be visible in the tooltip?
- Is it possible to style the tooltip?
- Is it possible to remove border?
- Are there any 'loading' animations to that chart type?
Solution:
Below are the responses to the four questions you asked about the bubble-pack chart respectively.
- Yes, it is possible to specify data that will be visible in tooltip using custom tokens. The custom token is defined in the plot or series object as an attribute or array using the "data" prefix, e.g., data-fullname or data-extracredit. It is then recalled in the tooltips, value boxes, markers, or crosshair plot labels, e.g., %data-fullname or %data-extracredit.
- Yes, styling can be defined under
options: {
item: {
// style for the bubble
borderWidth: 0,
label: {
// style/text for bubble label
},
tooltip: {
// style/text for the bubble label
text: "%data-number bubble-pack",
padding: 10,
borderColor: "red",
}
},
3. As you can see in the code snippet above, the border can be removed from the item object inside options.
4. Unfortunately, no. We don't have animations on bubble pack in the current version of ZingChart.
Please use this demo for reference.