Module chart

Module chart 

Source
Expand description

Chart types for OOXML-based chart support.

Charts in HWPX use the OOXML chart XML format (xmlns:c). This module defines the chart type enum (18 variants covering all 16 OOXML chart types, with Bar/Column direction split) and the data model for category-based and XY-based chart data.

§Examples

use hwpforge_core::chart::{ChartType, ChartData, ChartGrouping, LegendPosition};

let data = ChartData::category(
    &["Q1", "Q2", "Q3"],
    &[("Sales", &[100.0, 150.0, 200.0])],
);
assert!(matches!(data, ChartData::Category { .. }));

Structs§

ChartSeries
A named data series with values aligned to categories.
XySeries
A named XY data series (for scatter/bubble charts).

Enums§

BarShape
Bar/column 3D shape variant.
ChartData
Chart data — either category-based or XY-based.
ChartGrouping
Chart data grouping mode.
ChartType
OOXML chart types supported by 한글 (16 OOXML types → 18 variants).
LegendPosition
Legend position relative to the chart area.
OfPieType
Pie-of-pie or bar-of-pie sub-type.
RadarStyle
Radar chart rendering style.
ScatterStyle
Scatter chart line/marker style.
StockVariant
Stock chart sub-variant determining series composition.