Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135182

Provide a switch for "pinpointed" axis ticks for ValueAxis

    XMLWordPrintable

Details

    Description

      One can use the snippet here:
      https://doc.qt.io/qt-6/qtgraphs-migration-guide-2d.html#migrating-line-series
      to see how axes look different for QtCharts and QtGraphs.

      The default look of QtCharts is that ticks on axes pinpoint each data point:

      Although the intervals are somewhat "inconsistent", the ticks at, e.g. x = 3.1, x = 4.1, y = 1.2, etc.., exactly matches each data point.

      And when it comes to QtGraphs, it has nice consistent intervals between ticks, but those ticks do not care about actual data point (it's min + predefined interval, e.g. 0.5, regardless):

      Admittedly, what QtGraphs shows may look more scientific and reasonable, there are people who prefer the old look. So maybe add a "switch"?

      Attachments

        1. image-2025-03-26-18-35-46-950.png
          67 kB
          Luqiao Chen
        2. image-2025-03-26-18-38-02-111.png
          53 kB
          Luqiao Chen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kagro Kaj Grönholm
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes