pisnge 0.1.2

A Rust-based diagram rendering library inspired by Mermaid.js, focused on generating SVG pie charts
Documentation
use std::collections::HashMap;

#[derive(Debug, Clone, PartialEq)]
pub struct PieChartConfig {
    pub theme: String,
    pub theme_variables: HashMap<String, String>,
}

#[derive(Debug, Clone, PartialEq)]
pub struct PieChartData {
    pub label: String,
    pub value: f64,
}

#[derive(Debug, Clone, PartialEq)]
pub struct PieChart {
    pub config: Option<PieChartConfig>,
    pub show_data: bool,
    pub title: Option<String>,
    pub data: Vec<PieChartData>,
}

pub mod parser;
pub mod png;
pub mod renderer;