ECharts scatter
Reusable interactive scatter component for quantitative relationships or categorical points. The effect variant adds ripple emphasis without changing component identity.
- Purpose
- Explore correlation, clusters, and outliers; optionally call attention to exceptional points.
- Primitive
- echarts.Scatter
- Kind
- components.KindEChartsScatter
- Configuration
- Label, Caption, standard or effect Variant, optional Ripple, category or value axis mode, typed Series, size, options, and chart style.
- Accessibility
- Animation is supplemental. Figure name comes from Label and Caption stays visible; pair the canvas with a table or text summary when exact points matter.
Usage Example
@echarts.Scatter(echarts.ScatterConfig{
Label: "Release impact",
Variant: echarts.ScatterVariantEffect,
XAxis: []string{"v1.8", "v1.9", "v2.0"},
Series: []echarts.ScatterSeries{{
Name: "Impact",
Data: []opts.ScatterData{{Value: 35}, {Value: 52}, {Value: 91}},
}},
Ripple: &opts.RippleEffect{Scale: 6, BrushType: "stroke"},
})Variant contract
ScatterVariantStandard is the zero-value default. ScatterVariantEffect adds ripple rendering while the constructor, config, Instance, and stable Kind remain the same.