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 plot multiple line series in the same chart
QtWS25 Last Chance

How to plot multiple line series in the same chart

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.6k 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.
  • N Offline
    N Offline
    Neko12345
    wrote on last edited by
    #1

    I have to plot 17 line series in the same chart. Any ideas how to make it?

    jsulmJ 1 Reply Last reply
    0
    • N Neko12345

      I have to plot 17 line series in the same chart. Any ideas how to make it?

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

      @Neko12345 said in How to plot multiple line series in the same chart:

      Any ideas how to make it?

      Call https://doc.qt.io/qt-5/qchart.html#addSeries for every line series you have?

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

      N 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Neko12345 said in How to plot multiple line series in the same chart:

        Any ideas how to make it?

        Call https://doc.qt.io/qt-5/qchart.html#addSeries for every line series you have?

        N Offline
        N Offline
        Neko12345
        wrote on last edited by
        #3

        @jsulm Well I tried that. Not working.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          What exactly did you do ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

            Hi
            Did you new the the Series ?
            The only thing i can guess on that would make it "not working"

            Did you see this example?
            https://doc.qt.io/qt-5.15/qtcharts-linechart-example.html

            If you do mutiple
            QLineSeries *series = new QLineSeries();
            and give it some points
            and then call
            chart->addSeries(series1);
            chart->addSeries(series2);
            etc, it should draw them.

            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