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. Mutliple charts in a single QChart
Forum Update on Monday, May 27th 2025

Mutliple charts in a single QChart

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 6 Posters 6.5k 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.
  • K Offline
    K Offline
    krojew
    wrote on last edited by
    #1

    Hi,
    I'm wondering if there's a way to create multiple, stacked charts in QtCharts, like this: alt text

    This was done using QCustomPlot library. Note the same domain and range on all X axes, and the same alignment of the Y axes. I tried replicating this using QChart but it seems it's impossible to align multiple charts the same way - the Y axes are always misaligned, depending on labels. Is there some way to do it?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KonradMD
      wrote on last edited by
      #2

      Something similar to this?
      http://doc.qt.io/qt-5/qtcharts-lineandbar-example.html

      K 1 Reply Last reply
      1
      • K KonradMD

        Something similar to this?
        http://doc.qt.io/qt-5/qtcharts-lineandbar-example.html

        K Offline
        K Offline
        krojew
        wrote on last edited by
        #3

        @KonradMD no - note that in that example there is only one chart with two series.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuzulis
          Qt Champions 2020
          wrote on last edited by
          #4

          I tried replicating this using QChart

          Nonono, please, stay on QCustomPlot (or try to use Qwt) as the QtCharts is ugly and slow.

          1 Reply Last reply
          1
          • April ZhangA Offline
            April ZhangA Offline
            April Zhang
            wrote on last edited by
            #5

            hi, I have same problem to slove ,I can't set alignment of axisY like this: can you tell me solution ?![alt text](0_1524405877846_a.png image url)

            jsulmJ 1 Reply Last reply
            0
            • April ZhangA April Zhang

              hi, I have same problem to slove ,I can't set alignment of axisY like this: can you tell me solution ?![alt text](0_1524405877846_a.png image url)

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @April-Zhang said in Mutliple charts in a single QChart:

              I have same problem to slove

              No, your problem is completely different to what was discussed in this thread.
              You should open your own thread.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • April ZhangA Offline
                April ZhangA Offline
                April Zhang
                wrote on last edited by
                #7

                can you tell me your solution of your problem? I really want to know, I can't set alignment of Y axis in different chart ,please give me some adivce

                DiracsbracketD 1 Reply Last reply
                0
                • April ZhangA April Zhang

                  can you tell me your solution of your problem? I really want to know, I can't set alignment of Y axis in different chart ,please give me some adivce

                  DiracsbracketD Offline
                  DiracsbracketD Offline
                  Diracsbracket
                  wrote on last edited by
                  #8

                  @April-Zhang said in Mutliple charts in a single QChart:

                  please give me some adivce

                  I posted a solution that seems to work in your other post, but you don't seem to have looked at it?
                  https://forum.qt.io/topic/90071/how-to-set-alignment-of-qchart-axis/2

                  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