You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a POC for a project that requires multiple grouped charts with a brush chart that controls all.
I am using the angular wrapper, but it does not allow adding the targets property in the latest version published in NPM. This is why I configured the brush charts with the targets property, using the JS ApexCharts constructor. However with this configuration an exception that .forEach is not defined is thrown here (src/modules/Core.js:619) targets.forEach((target) => {
After some debugging it turned out that when targets is an array, targets gets evaluated as a boolean "true" here (src/modules/Core.js:615): let targets = Array.isArray(w.config.chart.brush.targets) || [w.config.chart.brush.target,]
After changing the code in the browser with the following everything works as expected: var a = i.config.chart.brush.targets || [i.config.chart.brush.target];
Currently I am using a workaround I found in a different issue, because I`m not sure if this is actually a bug or the problem is in my configuration:
This discussion was converted from issue #4103 on November 14, 2023 14:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating a POC for a project that requires multiple grouped charts with a brush chart that controls all.
I am using the angular wrapper, but it does not allow adding the targets property in the latest version published in NPM. This is why I configured the brush charts with the targets property, using the JS ApexCharts constructor. However with this configuration an exception that .forEach is not defined is thrown here (src/modules/Core.js:619)
targets.forEach((target) => {
After some debugging it turned out that when targets is an array, targets gets evaluated as a boolean "true" here (src/modules/Core.js:615):
let targets = Array.isArray(w.config.chart.brush.targets) || [w.config.chart.brush.target,]
After changing the code in the browser with the following everything works as expected:
var a = i.config.chart.brush.targets || [i.config.chart.brush.target];
Currently I am using a workaround I found in a different issue, because I`m not sure if this is actually a bug or the problem is in my configuration:
Beta Was this translation helpful? Give feedback.
All reactions