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. Completely customizing charts
Qt 6.11 is out! See what's new in the release blog

Completely customizing charts

Scheduled Pinned Locked Moved Unsolved General and Desktop
chartsqmlstyles
7 Posts 2 Posters 2.2k Views 2 Watching
  • 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 Offline
    R Offline
    raketmus
    wrote on last edited by
    #1

    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
    0
    • R Offline
      R Offline
      raketmus
      wrote on last edited by
      #2

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

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

        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
        0
        • R Offline
          R Offline
          raketmus
          wrote on last edited by
          #4

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

          mrjjM 1 Reply Last reply
          0
          • R raketmus

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

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @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
            0
            • R Offline
              R Offline
              raketmus
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • R Offline
                R Offline
                raketmus
                wrote on last edited by
                #7

                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
                1

                • Login

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