Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Plotting advanced graphs with QML
Forum Updated to NodeBB v4.3 + New Features

Plotting advanced graphs with QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 6 Posters 5.8k 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.
  • K Offline
    K Offline
    Kofr
    wrote on 14 Dec 2015, 12:59 last edited by
    #1

    Hi, I am looking for good solutions of making advanced customizable 2d graphs plots in QML.
    What solutions exest? or do I have to create my own in C++?

    ? 1 Reply Last reply 14 Dec 2015, 18:30
    0
    • N Offline
      N Offline
      nx7z
      wrote on 14 Dec 2015, 13:49 last edited by
      #2

      Best solution for me, so fare is using qcustomplot with following extension:

      http://www.qcustomplot.com/index.php/support/forum/172

      QCustomPlot it under the GPL... but commercial licence is available

      1 Reply Last reply
      1
      • K Kofr
        14 Dec 2015, 12:59

        Hi, I am looking for good solutions of making advanced customizable 2d graphs plots in QML.
        What solutions exest? or do I have to create my own in C++?

        ? Offline
        ? Offline
        A Former User
        wrote on 14 Dec 2015, 18:30 last edited by
        #3

        @Kofr

        Chart.js for QML looks interesting, I haven't tried it though.

        If you get it working, report back and let us know.

        1 Reply Last reply
        1
        • H Offline
          H Offline
          hamer
          wrote on 16 Dec 2015, 13:39 last edited by
          #4

          I have used QChart (=port of Chart.js). Chart.js works pretty well if you need basic charting (for instance no interaction with the chart). The Qml port relies on an old Chart.js version which does not support multi-axis. Also you have to pass well-proprocessed data to the chart to get correct axis labeling, grids, etc.

          Qt also offers a charting component with the professional licenses but I have not tried this.

          V 1 Reply Last reply 16 Dec 2015, 14:46
          0
          • H hamer
            16 Dec 2015, 13:39

            I have used QChart (=port of Chart.js). Chart.js works pretty well if you need basic charting (for instance no interaction with the chart). The Qml port relies on an old Chart.js version which does not support multi-axis. Also you have to pass well-proprocessed data to the chart to get correct axis labeling, grids, etc.

            Qt also offers a charting component with the professional licenses but I have not tried this.

            V Offline
            V Offline
            vishnu
            wrote on 16 Dec 2015, 14:46 last edited by vishnu
            #5

            @hamer @nx7z @Kofr

            1. Will Chart.js works for android platform. I mean on touch screens will the graph be able to support pinch to zoom features? or just zooming with 2 buttons "+" and "-".
            2. Can anyone please explain me ,How to add this library to the project? Thanks
            1 Reply Last reply
            0
            • H Offline
              H Offline
              hamer
              wrote on 23 Dec 2015, 11:11 last edited by
              #6

              QChart is static (no pinch, drag, etc.). It just displays the data - everything else has to be developed by yourself. The QChart project includes a sample Qml file which you can use for testing.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                Vincent007
                wrote on 22 Jan 2016, 15:51 last edited by
                #7

                @Kofr You can use Qt Charts

                V 1 Reply Last reply 25 Jan 2016, 11:17
                0
                • V Vincent007
                  22 Jan 2016, 15:51

                  @Kofr You can use Qt Charts

                  V Offline
                  V Offline
                  vishnu
                  wrote on 25 Jan 2016, 11:17 last edited by
                  #8

                  @Vincent007
                  Is it free of cost? I see that It will be included in 5.6. How about adding it to 5.5? any idea? Thanks

                  V 1 Reply Last reply 27 Jan 2016, 14:57
                  0
                  • V vishnu
                    25 Jan 2016, 11:17

                    @Vincent007
                    Is it free of cost? I see that It will be included in 5.6. How about adding it to 5.5? any idea? Thanks

                    V Offline
                    V Offline
                    Vincent007
                    wrote on 27 Jan 2016, 14:57 last edited by
                    #9

                    @vishnu Yes, if you can accept GPL. I tried Qt charts in Qt 5.6. It works. You can build Qt charts by yourself. http://doc.qt.io/QtCharts/qtcharts-getting-started.html

                    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