1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/// An enumeration representing different fill modes for area traces in plots.
///
/// The `Fill` enum specifies how the area under or between traces should be filled
/// in plots like scatter plots, line plots, and polar scatter plots.
///
/// # Example
///
/// ```rust
/// use plotlars::{Fill, Mode, Plot, Rgb, ScatterPolar, Text};
/// use polars::prelude::*;
///
/// let angles: Vec<f64> = (0..=360).step_by(10).map(|x| x as f64).collect();
/// let radii: Vec<f64> = angles.iter()
/// .map(|&angle| 5.0 + 3.0 * (angle * std::f64::consts::PI / 180.0).sin())
/// .collect();
///
/// let dataset = DataFrame::new(angles.len(), vec![
/// Column::new("angle".into(), angles),
/// Column::new("radius".into(), radii),
/// ])
/// .unwrap();
///
/// ScatterPolar::builder()
/// .data(&dataset)
/// .theta("angle")
/// .r("radius")
/// .mode(Mode::Lines)
/// .fill(Fill::ToSelf) // Fill the area enclosed by the trace
/// .color(Rgb(135, 206, 250))
/// .opacity(0.6)
/// .plot_title(Text::from("Filled Polar Area Chart"))
/// .build()
/// .plot();
/// ```
///
/// 