QT Charts with different view
Unsolved
General and Desktop
-
wrote on 6 Feb 2022, 13:56 last edited by
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
-
wrote on 17 Feb 2022, 08:46 last edited by
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.