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 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
    0
    • N Offline
      N Offline
      nx7z
      wrote on 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

        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 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 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.

          vishnuV 1 Reply Last reply
          0
          • H hamer

            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.

            vishnuV Offline
            vishnuV Offline
            vishnu
            wrote on 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 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 last edited by
                #7

                @Kofr You can use Qt Charts

                vishnuV 1 Reply Last reply
                0
                • V Vincent007

                  @Kofr You can use Qt Charts

                  vishnuV Offline
                  vishnuV Offline
                  vishnu
                  wrote on 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
                  0
                  • vishnuV vishnu

                    @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 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