Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved Completely customizing charts

    General and Desktop
    charts qml styles
    2
    7
    390
    Loading More Posts
    • 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.
    • R
      raketmus last edited by

      Hello i am trying to customize some charts, now i would like for them to look something like this:
      8b38f964-c691-4857-b902-991d905e0410-billede.png
      now the colors aren't perfect, but you should get the idea.
      Now the way i would do this is by using a Areaseries with a Spileseries problem is Areaseries doesn't support this.
      Should i

      • Edit the qt-charts module then rebuild it into my app?
      • Make my own custom chart based upon qt-charts?
      • Something else?

      Also is there a way that i can move the axes to be inside of the chart it self?

      1 Reply Last reply Reply Quote 0
      • R
        raketmus last edited by

        Maybe i could also use a different charting lib any one got ideas on that?

        1 Reply Last reply Reply Quote 0
        • mrjj
          mrjj Lifetime Qt Champion last edited by

          Hi
          You could try QCustomPlot
          If you look here
          https://www.qcustomplot.com/index.php/tutorials/basicplotting

          alt text

          Dont the purple one, looks a bit like what you want ?

          1 Reply Last reply Reply Quote 0
          • R
            raketmus last edited by

            QCustomPlot doesn't seem to have support for qml i could of course add some qml bindings my self.
            I will look into this.

            mrjj 1 Reply Last reply Reply Quote 0
            • mrjj
              mrjj Lifetime Qt Champion @raketmus last edited by

              @raketmus
              Oh I missed it was for QML.

              I assume you want smooth curve so
              https://doc.qt.io/qt-5/qtcharts-areachart-example.html
              is out of the question.

              1 Reply Last reply Reply Quote 0
              • R
                raketmus last edited by

                Yeah would be really nice if support for spline was added to it.

                1 Reply Last reply Reply Quote 0
                • R
                  raketmus last edited by

                  Found this https://github.com/milosolutions/mcharts it might be what i need as chart.js seems to be very customizable.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post