Skip to content

Commit fc20411

Browse files
committed
feat(chart): add rendering feature module for DrawingML charts
This module renders DrawingML chart blocks as inline SVG elements, supporting various chart types with performance guardrails in place.
1 parent 3fd5a22 commit fc20411

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

  • packages/layout-engine/painters/dom/src/features/chart
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Chart — rendering feature module
3+
*
4+
* Renders DrawingML chart blocks as inline SVG elements.
5+
* Supports bar/column, line, area, pie, doughnut, scatter, bubble,
6+
* radar, and stock charts, with a placeholder fallback for unsupported types.
7+
*
8+
* Performance guardrails:
9+
* - Max 20 rendered series
10+
* - Max 500 data points per series
11+
* - Max 5,000 SVG elements per chart
12+
*
13+
* @ooxml c:barChart — bar and column charts (ECMA-376 §21.2.2.16)
14+
* @ooxml c:lineChart — line charts (ECMA-376 §21.2.2.81)
15+
* @ooxml c:stockChart — stock charts (ECMA-376 §21.2.2.157)
16+
* @ooxml c:areaChart — area charts (ECMA-376 §21.2.2.1)
17+
* @ooxml c:scatterChart — scatter charts (ECMA-376 §21.2.2.147)
18+
* @ooxml c:bubbleChart — bubble charts (ECMA-376 §21.2.2.20)
19+
* @ooxml c:radarChart — radar charts (ECMA-376 §21.2.2.132)
20+
* @ooxml c:pieChart — pie charts (ECMA-376 §21.2.2.126)
21+
* @ooxml c:doughnutChart — doughnut charts (ECMA-376 §21.2.2.50)
22+
* @ooxml c:ofPieChart — bar-of-pie / pie-of-pie charts (ECMA-376 §21.2.2.111)
23+
* @spec ECMA-376 §21.2 (DrawingML Charts)
24+
*/
25+
26+
export { createChartElement, createChartPlaceholder, formatTickValue } from '../../chart-renderer.js';

0 commit comments

Comments
 (0)