Chart styling

  1. Specify the chart title under title if necessary.

  2. Under settings, you can:

    1. Insert chart legend related settings (see Adjust chart legend section).

    2. Configure chart legend options such as chartShowLegend, chartLegendPosition, chartLegendFontColor, and isChartLegendBold.

    3. Define the desired chart title using title.

    4. Set the font and size with chartFont and chartFontSize

    5. Optionally, adjust the data label color using chartDataLabelColor (e.g., "Red", "Black", "Green" color names only).

Reference: chart

Download: input.zip | output.pptx


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Chart 1",
            "settings": {
              "chartShowLegend": true,
              "chartLegendPosition": "Bottom",
              "chartLegendFontColor": "255,0,0",
              "isChartLegendBold": true,
              "title": "Average Annual Precipitations",
              "chartFont": "Trebuchet MS",
              "chartFontSize": 20,
              "chartDataLabelColor": "Red"
            }
          }
        ]
      }
    ]
  }
}

Last updated

Was this helpful?