Line chart legend color is just black?

Posted by: kp on 9 June 2020, 6:33 pm EST

    • Post Options:
    • Link

    Posted 9 June 2020, 6:33 pm EST - Updated 30 September 2022, 12:22 am EST

    So despite setting a palette for the chart and all other chart types displaying properly and the line itself having the right colors, for some reason the legend just shows black, which is an issue if there are more line charts in the same flex chart. Is there a style setting I have to edit on, I tried both legendstyle and legenditemstyle, editing there stroke and fill colors, to no avail.

  • Posted 11 June 2020, 12:25 am EST

    I found out the issue, the color on the legend was based on chart style.stroke color for the line, but I only set the fill color. Also the Legend.Style and LegendItem.Style objects had no effect on the legend other than background color and text color.

  • Posted 15 June 2020, 2:20 am EST

    Hi KP

    Glad to know that your issue has been resolved, your observations are correct regarding the FlexChart the color on the legend was based on chart style.stroke color for the line.

    Please let me know if you need any other help.

    Thanks

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels