Closed thomasjammet closed 1 year ago
Seems like a valid use case.
But I think the offset
option would not work as expected with these changes (it can actually be used as a workaround for the issue)
I should really add some tests :)
Kudos, SonarCloud Quality Gate passed!
Hi @kurkle
Thanks for the fast answer and the workaround! I didn't thought to use the offset
as a dynamic tool.
I have updated the PR with a correction for the offset
which will be used only for initialization, now I let you see if you think it's good to take it.
Let me know if you need something
Thanks @thomasjammet !
Hi!
I have met an issue with a dynamic chart use case. When a new dataset is added after the first initialization of the chart the plugin always creates a new generator which will restart the set of colors.
The following html code is a sample to reproduce the issue, you can see that the new lines added dynamically to the graph always get the initial red color :
It will look like this :
To avoid this behavior I propose to simply save the generator on the chart instance, let met know your thoughts.
Regards