I am trying to use the chart features for the first time. I found the chartAPI demo at
https://doc.tmssoftware.com/flexcel/vcl/samples/delphi/api/chart-api/index.html
First thing that struck me is that I have to copy/paste a 100 of lines of code just to insert a single chart? That is crazy.
If I was using Excel, I simply select my rows/columns with data and put it "insert chart". It them creates a chart with default settings that at least 50% of the time is perfectly fine. If I customize something it is often just a title or axis labels.
I was expecting a method something like
AddLineChart(aDataRange, aTopLeft, aWidth, aHeight)
maybe an overload that allowed you to add common properties (xAxisTile, yAxisTile, ChartTitle)
That is much easier for people like me who dont want (or need) to get into the weeds of setting custom TextFillOptions, LabelTextOptions, DataLabelOptions, ChartFillOptions, ChartFrameOptions. The Excel defaults are all fine for me.
Is there an easier way that I did not find compared to the boatload of code in the API demo example?