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. Is reversing one axis of QML chart undefined behavior?
QtWS25 Last Chance

Is reversing one axis of QML chart undefined behavior?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 545 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
    Nima Ghorab
    wrote on last edited by Nima Ghorab
    #1

    Hey guys.
    I want to reverse just Y axis of chart in QML and I found that reverse property is what I need to.
    Here documentation says:

    **reverse : alignment

    Defines whether a reverse axis is used. By default, the value is false.

    The reverse axis is supported with a line, spline, and scatter series, as well as an area series with a cartesian chart. All axes of the same orientation attached to the same series must be reversed if one is reversed or the behavior is undefined.**

    I'm asking because I'm not sure and in my tests I didn't encounter any crashes or strange behavior after reversing just Y axis alone.

    Really thanks guys for the great helps!

    DiracsbracketD 1 Reply Last reply
    0
    • N Nima Ghorab

      Hey guys.
      I want to reverse just Y axis of chart in QML and I found that reverse property is what I need to.
      Here documentation says:

      **reverse : alignment

      Defines whether a reverse axis is used. By default, the value is false.

      The reverse axis is supported with a line, spline, and scatter series, as well as an area series with a cartesian chart. All axes of the same orientation attached to the same series must be reversed if one is reversed or the behavior is undefined.**

      I'm asking because I'm not sure and in my tests I didn't encounter any crashes or strange behavior after reversing just Y axis alone.

      Really thanks guys for the great helps!

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by
      #2

      @Nima-Ghorab
      The doc does not say that you need to invert all axes, but only the axes in the same direction (yours: Y direction) attached to etc...
      So, you don't need to invert the X axis too, if that was your concern.
      Cheers.

      N 1 Reply Last reply
      3
      • DiracsbracketD Diracsbracket

        @Nima-Ghorab
        The doc does not say that you need to invert all axes, but only the axes in the same direction (yours: Y direction) attached to etc...
        So, you don't need to invert the X axis too, if that was your concern.
        Cheers.

        N Offline
        N Offline
        Nima Ghorab
        wrote on last edited by
        #3

        @Diracsbracket Thank you so much!

        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