fission-charts 0.4.1

Native chart widgets and data visualization primitives for Fission applications
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct Tooltip {
    pub trigger: String, // "item", "axis"
}

impl Tooltip {
    pub fn axis_trigger() -> Self {
        Self {
            trigger: "axis".into(),
        }
    }

    pub fn item_trigger() -> Self {
        Self {
            trigger: "item".into(),
        }
    }
}