usecrate::chart::Chart;usecrate::mark::point::MarkPoint;/// Extension implementation for `Chart` to support Scatter Plots (MarkPoint).
////// This module provides the user-facing API to initialize and configure
/// the visual properties of point marks.
implChart<MarkPoint>{/// Configures the visual properties of the point mark using a closure.
////// This is the primary entry point for customizing the look of the scatter plot.
/// Since [MarkPoint] implements a fluent builder interface, you can chain
/// multiple property changes inside the closure efficiently.
////// # Example
/// ```rust,ignore
/// chart.mark_point()
/// .configure_point(|m| m.color("red").size(5.0).opacity(0.8))
/// ```
pubfnconfigure_point<F>(mutself, f: F)->Selfwhere
F: FnOnce(MarkPoint) -> MarkPoint,
{// Extract the existing mark or start with a default one
let mark =self.mark.take().unwrap_or_default();// Apply the configuration closure and re-insert the mark
self.mark =Some(f(mark));self}}