From ddb701db48353ff2eb18503ba7346eb413da3cc9 Mon Sep 17 00:00:00 2001 From: echo666939 <198456500+echo666939@users.noreply.github.com> Date: Thu, 3 Dec 2026 15:37:21 +0800 Subject: [PATCH] List chart types supported by add_chart in the user guide --- docs/user/charts.rst | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/docs/user/charts.rst b/docs/user/charts.rst index dfe27fd2f..bf6d16196 100644 --- a/docs/user/charts.rst +++ b/docs/user/charts.rst @@ -2,8 +2,47 @@ Working with charts =================== -|pp| supports adding charts and modifying existing ones. Most chart types -other than 3D types are supported. +|pp| supports adding charts and modifying existing ones. + + +Supported chart types +--------------------- + +To create a chart with :meth:`~.SlideShapes.add_chart`, use one of these +:ref:`XL_CHART_TYPE ` members. + +.. list-table:: Chart types supported for creation + :header-rows: 1 + :widths: 20 80 + + * - Chart family + - ``XL_CHART_TYPE`` members + * - Area + - ``AREA``, ``AREA_STACKED``, ``AREA_STACKED_100`` + * - Horizontal bar + - ``BAR_CLUSTERED``, ``BAR_STACKED``, ``BAR_STACKED_100`` + * - Column + - ``COLUMN_CLUSTERED``, ``COLUMN_STACKED``, ``COLUMN_STACKED_100`` + * - Doughnut + - ``DOUGHNUT``, ``DOUGHNUT_EXPLODED`` + * - Line + - ``LINE``, ``LINE_STACKED``, ``LINE_STACKED_100``, + ``LINE_MARKERS``, ``LINE_MARKERS_STACKED``, ``LINE_MARKERS_STACKED_100`` + * - Pie + - ``PIE``, ``PIE_EXPLODED`` + * - Radar + - ``RADAR``, ``RADAR_FILLED``, ``RADAR_MARKERS`` + * - XY (scatter) + - ``XY_SCATTER``, ``XY_SCATTER_LINES``, ``XY_SCATTER_LINES_NO_MARKERS``, + ``XY_SCATTER_SMOOTH``, ``XY_SCATTER_SMOOTH_NO_MARKERS`` + * - Bubble + - ``BUBBLE``, ``BUBBLE_THREE_D_EFFECT`` + +Use a |CategoryChartData| object for area, bar, column, doughnut, line, pie, +and radar charts. XY charts require an |XyChartData| object, and bubble charts +require a |BubbleChartData| object. See :ref:`chart-data-api` for these classes. + +``BUBBLE_THREE_D_EFFECT`` applies a 3D visual effect to a 2D bubble chart. Adding a chart