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
QtWS25 Last Chance

Completely customizing charts

Scheduled Pinned Locked Moved Unsolved General and Desktop
chartsqmlstyles
7 Posts 2 Posters 1.1k 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.
  • R Offline
    R Offline
    raketmus
    wrote on 15 Feb 2021, 23:26 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 16 Feb 2021, 14:23 last edited by
      #2

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 16 Feb 2021, 14:54 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 16 Feb 2021, 14:58 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.

          M 1 Reply Last reply 16 Feb 2021, 15:01
          0
          • R raketmus
            16 Feb 2021, 14:58

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

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 16 Feb 2021, 15:01 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 16 Feb 2021, 15:02 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 16 Feb 2021, 16:00 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

                2/7

                16 Feb 2021, 14:23

                topic:navigator.unread, 5
                • Login

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