Bubble Pack Chart Options

Problem:
I have few questions about the Bubble Pack Chart:

  1. Is it possible to specify data that will be visible in the tooltip?
  2. Is it possible to style the tooltip?
  3. Is it possible to remove border?
  4. 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.

  1. 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.
  2. 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.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us