Change the series label

Ingo
edited February 11, 2022 in Analytics #1
Hi,

just a short question:

Is it possible to change the series labels to a different column value from the same row? Or even combine multiple columns? I read something with "add another series and set it to invisble" but I don't know how can I access this series after all.

Thanks,

Ingo

Comments

  • JasonW
    edited December 31, 1969 #2
    Can you try adding a computed column to your dataset that contains both columns? Then in your beforeDrawDataPointLabel script modfiy the computed column value to display what you want?

    function beforeDrawDataPointLabel(dph, label, icsc)
    {

    var tst =label.getCaption().getValue();
    var splits = tst.split("--", 2);
    var newstr = splits[1];
    label.getCaption().setValue(newstr);
    }

    Jason