If there are a few charts then options from the previously built chart are applied to the next chart when this loop is running.
In my case, I faced the issue when tried to change options for the yAxis for one of the charts on the page.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | chartjs_api-wrong_chartjs_options-3085775-5-D8.patch | 671 bytes | nikita_tt |
Comments
Comment #2
nikita_ttComment #3
nikita_ttComment #4
nikita_ttComment #5
nikita_ttThis patch is better. I've changed code for making an object copy.
Comment #7
cbccharlie commentedComment #8
cbccharlie commented