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. QT Charts with different view
QtWS25 Last Chance

QT Charts with different view

Scheduled Pinned Locked Moved Unsolved General and Desktop
chartchartviewc++
2 Posts 2 Posters 359 Views
  • 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.
  • G Offline
    G Offline
    George_G
    wrote on 6 Feb 2022, 13:56 last edited by
    #1

    Can I display existing chart with different figure? For example a linechart with bar form or dots. I want to do this through a menu action(Show chart with lines - Show chart with bars). Is it possible? Thank you

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tinjapa
      wrote on 17 Feb 2022, 08:46 last edited by
      #2

      Hello! If I understood correctly, and you want to use the same chart view to represent the data in different forms like bars or line, I don't see any reason why not.
      If you take a look at https://doc.qt.io/qt-5/qtcharts-lineandbar-example.html, you can find an example of showing both a bar and line charts in the same chart, at the same time. From there, you can modify to show just one at a time, so in your case switching between the series when the menu action is triggered.

      1 Reply Last reply
      0

      • Login

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