Enum ChartType
- Namespace
- DocToolkit
- Assembly
- DocToolkit.Primitives.dll
The chart shapes AddChart methods on WorkbookEditor and PresentationEditor can create
— one closed vocabulary shared by both, mirroring OfficeIMO's own OfficeChartKind,
minus two values that do not fit the shared categories-and-value-series
ChartData shape, so nothing here can drift from what the renderer beneath
actually draws.
OfficeChartKind also has Scatter and Bubble, deliberately excluded here:
measured directly against both the Excel and PowerPoint chart APIs, both reject a
ChartData built from this ticket's model — Excel's Scatter path requires
numeric X values where Categories is a string label, PowerPoint's
Scatter path rejects the same shape for the identical reason, Excel's shared chart API
refuses Bubble outright ("not supported by the shared Excel chart API"), and PowerPoint's
Bubble path requires a bubble size per point this model has no field for. A future chart
feature could add a companion X/Y-and-size data type for these two; forcing them into this
one would have shipped two enum values that always throw.
public enum ChartType
Fields
Area = 9Area chart.
AreaStacked = 10Stacked area chart.
AreaStacked100 = 11100% stacked area chart.
BarClustered = 3Clustered bar chart.
BarStacked = 4Stacked bar chart.
BarStacked100 = 5100% stacked bar chart.
ColumnClustered = 0Clustered column chart.
ColumnStacked = 1Stacked column chart.
ColumnStacked100 = 2100% stacked column chart.
Doughnut = 14Doughnut chart.
Line = 6Line chart.
LineStacked = 7Stacked line chart.
LineStacked100 = 8100% stacked line chart.
Pie = 13Pie chart.
Radar = 12Radar chart.