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.

Comments

nikita_tt created an issue. See original summary.

nikita_tt’s picture

nikita_tt’s picture

Status: Active » Needs review
nikita_tt’s picture

Issue summary: View changes
nikita_tt’s picture

StatusFileSize
new671 bytes

This patch is better. I've changed code for making an object copy.

  • cbccharlie committed e2dec56 on 8.x-1.x
    Issue #3085775 by nikita_tt: Wrong chartjs options in case there are a...
cbccharlie’s picture

Status: Needs review » Fixed
Issue tags: -
cbccharlie’s picture

Status: Fixed » Closed (fixed)