Qt World Summit: Submit your Presentation

Customizing legends in chart

  • Hello!
    I am quite frustrated in an attempt to customized my legend on the bar chart! :)
    I have the stacked bar chart, for a few of bar set I do not want to show their legends but I just can hide (transparent) the label of the legends (i.e. the text) as such the label shape still stays in the legend box. Is there a way to get rid of unwanted legends!?
    thx a lot!

  • Moderators

    You are using QtCharts right? According to documentation it should be enough to set legend.visible: false: docs

Log in to reply