Skip to content

Bubble chart

D3 chart ​

For all common D3 chart properties, refer to D3 chart API.

Chart.Bubble ​

js
import { Chart } from '@semcore/ui/d3-chart';

BubbleChartProps ​

BaseChartProps<> & {...}
NameTypeDescription
groupKeynever Field name that groups the data points
xScaleScaleLinear<any, any> Custom x-axis scale
yScaleScaleLinear<any, any> Custom y-axis scale
onClickBubble(index: number, event: ) => void Callback triggered when a user clicks on a bubble

Bubble ​

js
import { Bubble } from '@semcore/ui/d3-chart';

<Bubble />;

BubbleProps ​

& {...}
NameTypeDescription
xstring Field name from `data` array item for the XAxis
ystring Field name from `data` array item for the YAxis
valuestring Field name from `data` array item for the circle radius
labelstring Field name from `data` array item for the circle label
colorstring Circle color
markedCrossboolean Cross in the center of the bubble
durationnumber Animation duration in ms
transparentboolean Enables element transparency
patterns Enables charts patterns that enhances charts accessibility
onClick(index: number, event: ) => void Callback triggered when a user clicks on a bubble

Bubble.Tooltip ​

js
import { Bubble } from '@semcore/ui/d3-chart';

<Bubble.Tooltip />;

Bubble.Circle ​

js
import { Bubble } from '@semcore/ui/d3-chart';

<Bubble.Circle />;

BubbleCircleProps ​

NameTypeDescription
indexnumber Item data index
visibleboolean Item visibility

Released under the MIT License.

Released under the MIT License.