1๐
โ
I think the issue is that you need to convert the data into a format supported by bubble charts. For line and bar charts data can be integers or floats but for bubble charts they need to be Objects with a specified โxโ, โyโ and โrโ (radius) value.
So for example to display a data in a bubble graph at point (1,4) with a radius of 10, youโll specify it as:
{x: 1, y: 4, r: 10}
One way of doing this could be to call a helper function before creating a bubble chart or storing a copy of the data as an Object to be used only for bubble charts. It really depends on how youโve set up your project and if you are concerned about the number of computations carried out or not. Hope this helps!
Source:stackexchange.com