Skip to main content
1-Visitor
February 18, 2015
Question

Label Chart Hide Label from Legend if no value in Label Field

  • February 18, 2015
  • 1 reply
  • 1020 views

I am dynamically loading a LabelChart, it returns DataFields 1- 20 and correspondingly DataLabels1 -20.  If the DataLabel is empty (not populated), then I want to hit the label and it's color from showing up in the legend.  Is there an easy way to do this, I don't see a visibility option on the datalabels.


Thanks,


Keri



    1 reply

    1-Visitor
    December 2, 2015

    You could do this by not returning the DataField. The problem is the DataShape used. According to your chart, every DataLabel is showed in the legend. In oder to show different types of legend, many DataShape must be created before.

    Is it important to have each DataLabel in the legend, or is it enough to have every DataLabel under their bar / marker ?