Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Bubble chart in C3.js

I am trying to create a Bubble chart using C3js chart. I've selected chart type as 'scatter'. Is there any way can join the bubbles in below format enter image description here

like image 446
John Thomas Avatar asked Dec 31 '25 19:12

John Thomas


1 Answers

There is an undocumented C3.js extension for bubble chart:

https://github.com/c3js/c3/blob/master/extensions/chart-bubble/

Which introduce the bubble type.

Here is a fiddle: http://jsfiddle.net/beaver71/do2kLLjp/

Probably other chart library are preferably for this chart type:

  • chart.js: http://www.chartjs.org/samples/latest/scriptable/bubble.html
  • highcarts: https://www.highcharts.com/demo/bubble
like image 155
beaver Avatar answered Jan 02 '26 09:01

beaver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!