Skip to content Skip to sidebar Skip to footer

Dynamically Adding Of Series In Apex Chart

I had result that was pulled from the database, and each item in the result is a series in a single chart. I was able to update that chart but the last element of the result only s

Solution 1:

The updateSeries method overwrites the existing series. So in a for loop (like in the code you've included) you'd only be showing the last element - overriding any previous ones.

Take a look at the appendSeries method instead which will allow you to add additional series, while keeping the already existing.

Just worth mentioning as well, that this is different from appendData which allows you to add additional data points to an already existing series.


Post a Comment for "Dynamically Adding Of Series In Apex Chart"