lc_render/view/mod.rs
1pub mod area;
2pub mod horizontal_bar;
3pub mod line;
4pub mod scatter;
5pub mod vertical_bar;
6
7/// Orientation is used for views that use shapes that are configured by orientation.
8#[derive(Copy, Clone, PartialEq)]
9pub enum Orientation {
10 Horizontal,
11 Vertical,
12}
13
14/// View contains data representation on a chart.
15pub trait View {
16 fn to_svg(&self) -> svg::node::element::Group;
17}