Documentation has moved

This documentation is not maintained anymore.
Find the new documentation here:

https://support.lewe.com/docs/chart-js-for-confluence-manual/

Bubble Chart

Screenshot


Description

The Chart.js Bubble Chart macro can show several data sets of bubbles. The bubbles of each data set have a different color, indicated by the legend above the matrix. Each bubble is based on three values, its x-coordinate, its y-coordinate and its radius. A mouse-over tooltip shows these three values and the data set name it belongs to.


Adding the Macro

Edit your page.

Select "+" => Other macros

Type in "Chart.js" in the Search box

Select the "Chart.js Bubble Chart" macro

Enter and select the options of the macro

Click INSERT

Put your data table in the macro body

Save the page


Macro Options

OptionDescription
Chart IDEnter a unique identifier for this chart on your page. If you use more than one Chart.js chart on your page, make sure that each one of them has a different Chart ID. Use no blanks or special characters.
Show TitleSwitch on or off the display of the chart title. If switched on (default), the title is shown above the chart's matrix as shown in the screenshot above: "My Chart.js Bubble Chart".
Chart TitleEnter the title of the chart. You can chose to display it or not by the "Show Title" checkbox.
Chart WidthThis value defines the width of the chart block. The chart itself will adjust to this size. You can enter a pixel (e.g. "500px") or a percentage (e.g. "100%") value. A pixel value will make the block exactly that size, a percentage value refers to the parent block, e.g. a Confluence page section. The default is "500px". Enter the value without the quotes.
Chart Border WidthThe chart can have a border if you want so. Enter the size of it here in pixel. Enter just the number without the "px", e.g. "1". The default is "1". Enter the value without the quotes.
Chart Border ColorIf you chose to display a border around the chart, you can enter the color of it here. Enter the hex value of the color starting with a "#", e.g. "#d7d7d7". Enter the value without the quotes.
Bubble Border WidthThe bubbles can have a border if you want so. Enter the size of it here in pixel. Enter just the number without the "px", e.g. "1". The default is "1". Enter the value without the quotes.
Bubble Hover Border WidthWhen you hover a bubble with your mouse its border width can be changed in size with this value. Enter the size of it here in pixel. Enter just the number without the "px", e.g. "2". The default is "2". Enter the value without the quotes.
Aspect RatioWith this option switched on, you can force the height to be the same as the width of the chart (square display).
Show LegendSelect whether you want to show the legend or not.
Legend PositionSelect where to show the legend.
Show TooltipsSelect whether you want to show the tooltips when hovering a bubble or not.
Show Data TableSelect whether you want to show the data table of the macro body in the page view or not.


Data Table

The macro requires a table with your data in the macro body. It needs to follow a certain format. Here is an example used for the above screenshoot:

SeriesxyrColor
2016-23-1912maroon
2016-17-416maroon
201613-1313maroon
2016-161616maroon
201712-411blue
2017-61913blue
2017231216blue
2017341422blue
2018-1179olive
20189810olive
201811-1111olive
2018161213olive
201962317teal
2019-12-236teal
2019-4-2112teal
2019-221714teal

Header Row

The table must have a header row. It serves a visual purpose only though and the macro will ignore it.

Columns

The table must have at least 5 columns. You can add more if you want for your own purposes but the App will only read the first five and interprete them as follows. Each row represents one bubble.

SeriesxyrColor
The data series name of this bubble. All rows for one series must be underneath each other (grouped).The x-ccordinate of the bubbleThe y-ccordinate of the bubbleThe radius of the bubble in pixelThe color of the bubble. You can either enter "random" for a random color or one of the web color names.