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

qtGraphs ValueAxis labelFormat does not support the same formatting options that the qtCharts one

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8, 6.9
    • 6.8.1
    • Graphs: 2D
    • None
    • All
    • 6090cb94f (dev), 64d1cd7d1 (6.9), 03d31c0f5 (6.8)

    Description

      QtGraphs labels are formatted with QString::number which makes it impossible to add e.g. a unit to the tick labels.

      QtCharts used printf formatting which allowed that.

      Using e.g. "%.0f W" worked in QtCharts but in QtGraphs the " W" is not shown.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nikokorkala Niko Korkala
            tobiasb Tobias Bräutigam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes