charton 0.5.0

A high-performance, layered charting system for Rust, featuring a flexible data core and multi-backend rendering.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::mark::Mark;

/// A placeholder mark used for charts that have not yet been assigned a specific
/// visual type (e.g., bar, line, point).
///
/// This allows the "Base Chart" pattern where encodings are defined once and
/// reused across multiple layers.
#[derive(Clone, Default)]
pub struct NoMark;

impl Mark for NoMark {
    fn mark_type(&self) -> &'static str {
        "none"
    }
}