Loading
Options
Bubble color
Border color
Border width
Source Code(Live update based on the above Options change)
- JavaScript
- HTML
- data.js
import { Chart } from 'singledivui';
import 'singledivui/dist/singledivui.min.css';
import bubbleChartData from './data.js';
const options = {
type: "bubble",
data: {
series: {
points: bubbleChartData,
bubbleColor: "#98e21e80",
bubbleBorderColor: "#88ce17",
bubbleBorderWidth: 2
}
}
};
new Chart('#chart-demo', options);
<div id="chart-demo"></div>
export default [{
"x": 4,
"y": 5,
"r": 6
}, {
"x": 2,
"y": 22,
"r": 8
}, {
"x": 10,
"y": 60,
"r": 25
}, {
"x": 20,
"y": 45,
"r": 40
}, {
"x": 15,
"y": 75,
"r": 10
}, {
"x": 12,
"y": 30,
"r": 28
}, {
"x": 5,
"y": 40,
"r": 18
}, {
"x": 25,
"y": 30,
"r": 12
}, {
"x": 28,
"y": 40,
"r": 17
}, {
"x": 23,
"y": 70,
"r": 8
}, {
"x": 18,
"y": 17,
"r": 12
}, {
"x": 30,
"y": 30,
"r": 15
}, {
"x": 35,
"y": 60,
"r": 25
}, {
"x": 38,
"y": 45,
"r": 6
}, {
"x": 25,
"y": 75,
"r": 10
}, {
"x": 22,
"y": 25,
"r": 6
}, {
"x": 35,
"y": 30,
"r": 12
}, {
"x": 33,
"y": 70,
"r": 8
}, {
"x": 28,
"y": 17,
"r": 12
}, {
"x": 27,
"y": 60,
"r": 30
}, {
"x": 41,
"y": 81,
"r": 8
}]