MCPcopy Create free account
hub / github.com/angular-rust/ux-charts / new

Method new

src/basechart.rs:108–116  ·  view source on GitHub ↗

Creates a chart given a container. If the CSS position of [container] is "static", it will be changed to "relative".

(options: O)

Source from the content-addressed store, hash-verified

106 /// If the CSS position of [container] is "static", it will be changed to
107 /// "relative".
108 pub fn new(options: O) -> Self {
109 Self {
110 props: Default::default(),
111 data: Default::default(),
112 options,
113 context: None,
114 channels: RefCell::new(Vec::new()),
115 }
116 }
117
118 /// Creates a new color by combining the R, G, B components of [color] with
119 /// [alpha] from 0 to 1.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected