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. QtCharts : How create bar chart with error bars?

QtCharts : How create bar chart with error bars?

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 3.7k 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.
  • N Offline
    N Offline
    NuttinGo
    wrote on last edited by NuttinGo
    #1

    Hi,

    Is it possible to create bar chart with error bars with QtCharts ? Or to find bars position of a QChart?

    I want to modelize the standard deviation of each bar..

    I already tried to find the position of each bar with "scene" argument of QChart but I didn't success.

    Thanks for your help.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      do you have a visual example? You could just add 2 more series with the lower and upper confidence level on the same x and y axis...

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NuttinGo
        wrote on last edited by NuttinGo
        #3

        I have the firt chart for the moment and i want the second graph
        0_1479148435151_WI_Island_acs28_acs26.png 0_1479148536030_Error_bars_with_multiple_attributes__groups__example1__vertical_bars_.png

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          Image upload doesn't work, see https://forum.qt.io/topic/62615/how-to-insert-image-on-this-forum

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          0
          • N Offline
            N Offline
            NuttinGo
            wrote on last edited by
            #5

            I want a chart like that.
            http://images.google.fr/imgres?imgurl=http%3A%2F%2Fwww.ats.ucla.edu%2Fstat%2Fstata%2Ffaq%2Fbarcap1.gif&imgrefurl=http%3A%2F%2Fwww.ats.ucla.edu%2Fstat%2Fstata%2Ffaq%2Fbarcap.htm&h=278&w=413&tbnid=FWpc-v4UiWo_7M%3A&vet=1&docid=sdXt_RvY3x-Z7M&ei=5gMqWIjxGdayjwOdoL_wCQ&tbm=isch&iact=rc&uact=3&dur=1506&page=0&start=0&ndsp=26&ved=0ahUKEwiI_IrQ8ajQAhVW2WMKHR3QD54QMwgeKAEwAQ&bih=723&biw=1518

            1 Reply Last reply
            0
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              Probably you can just add a Box Whiskers series with just the whiskers http://doc.qt.io/qt-5/qtcharts-boxplotchart-example.html

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              0
              • N Offline
                N Offline
                NuttinGo
                wrote on last edited by
                #7

                Good idea but I need a grouped bar chart for a scientific article.

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  NuttinGo
                  wrote on last edited by
                  #8

                  No idea ?

                  1 Reply Last reply
                  0
                  • VRoninV Offline
                    VRoninV Offline
                    VRonin
                    wrote on last edited by
                    #9

                    reimplementing the paint of the chart is of course a solution but painful

                    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                    ~Napoleon Bonaparte

                    On a crusade to banish setIndexWidget() from the holy land of Qt

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      NuttinGo
                      wrote on last edited by
                      #10

                      UP!
                      I don't have solution.

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        NuttinGo
                        wrote on last edited by
                        #11

                        UP! Please :)

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          MElectronVolt
                          wrote on last edited by
                          #12

                          I want to veer off-topic slightly, but I think it's a shame that it's currently impossible to create scientific graphs using Qt. Error bars are essential for plotting functions or displaying data points.

                          I hope that the Qt team will eventually enable scientists and data scientists to fully utilize this framework.

                          Thank you to everyone at Qt 👍👏. I'm seriously considering purchasing a commercial license just to support your future efforts.

                          JoeCFDJ 1 Reply Last reply
                          1
                          • M MElectronVolt

                            I want to veer off-topic slightly, but I think it's a shame that it's currently impossible to create scientific graphs using Qt. Error bars are essential for plotting functions or displaying data points.

                            I hope that the Qt team will eventually enable scientists and data scientists to fully utilize this framework.

                            Thank you to everyone at Qt 👍👏. I'm seriously considering purchasing a commercial license just to support your future efforts.

                            JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by JoeCFD
                            #13

                            @MElectronVolt VTK may have some options for scientific graphs. VTK was started for rendering of scientific data. Qt was not. Good news is you can use mix Qt with VTK.

                            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