Search code examples
google-apps-scriptgoogle-sheetsgoogle-visualization

How to set the chart editor option “Aggregate” in Google Chart API


I want to set the option "Aggregate" (with value max), available in the Google sheet chart editor, through program code with the Google chart API.

enter image description here

I don't find any information on the Google chart API documentation.

Some help will be appreciated !


Solution

  • I have found this option which is not documented : .setOption('applyAggregateData',0)