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. ChartView/LineSeries tickAnchor not working as expected.
Forum Updated to NodeBB v4.3 + New Features

ChartView/LineSeries tickAnchor not working as expected.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 302 Views 1 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.
  • V Offline
    V Offline
    VFCraig
    wrote on last edited by
    #1

    I have a ChartView with a LineSeries (that will likely become an AreaSeries...in case the answer impacts that differently). The ValueAxis for Y goes from -4.0 to 20.0. I want tick marks at 0, 5, 10, 15 and 20. Based on the documentation, I should be able to set the tickAnchor value to 0.0 and the tickCount to 5 and get what I want, but instead I get tick marks at -4.0, 2.0, 8.0, 14.0 and 20.0.

    Can I specify exactly what tick values to display? Similar to Categories?

    Thanks.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VFCraig
      wrote on last edited by
      #2

      This was a documentation issue. The tickAnchor works in conjunction with the tickInterval. Why, I don't know. It would seem that the anchor provides a designation of the starting point at which to place ticks, which it does, but only if a tickInterval is set. And the documentation does not indicate this in the description of the anchor or the interval.

      This is, however, explained in the tickType, which must be set to TickDynamic for the tickAnchor and tickInterval to have effect.

      Side note: I do firmly believe that documentation, especially that for GUI programming, should also have a level of UI/UX design. (Not that that requires a paid consultant, just an awareness of what makes the documentation most useful.) It is the same concept as that for screens. Organize the data in a useful and efficient manner with clear visuals to emphasize key points. I'm sure this is a great opportunity for the creation of a new discipline to come in and tell companies how to write their manuals based off a "new and superior" vision of documentation.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Looks like the documentation could be improved. You are welcome to submit a patch to make things better :-)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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