I’m looking for a script to hide a data label if there is no data. Obviously I would add this to the no data action, but I can’t figure out the correct JS or dundas script syntax to add. Any ideas?
script to hide datalabel if there is No data
Hi Brandon,
Short of adding a layer for each control / overlay text you’d display the easiest thing to do is to target the opacity with a script.
chart1.opacity = 0;
or
chart1.opacity = 1;
1 Like
Also you could try using the “Disable No Data Indicator” Option available from the Main properties of the datalabel. It doesnt require a script.
2 Likes