Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to make all the legends visible in qt charts when multiple series are included in the chart.
Qt 6.11 is out! See what's new in the release blog

how to make all the legends visible in qt charts when multiple series are included in the chart.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 783 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sachinrd
    wrote on last edited by
    #1

    I need to know how to make legends of a chart completely visible. when multiple series is inlcuded in the chart, the legend text gets truncated.I want the legends to be arranged in a grid manner.I also want it to be in two seperate rows. have been stuck in this issue for days.someone please help. I did find a solution with qml,but i am using a widgets application.Thank you.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You can detach it and change it size to allow better wrap.

      alt text

      Play around with sample
      https://doc.qt.io/qt-5/qtcharts-legend-example.html

      alt text

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved