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

QChart series attach axis / attach chart design flaw

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.0
    • Charts
    • None
    • Linux/Other display system

      Adding an axis to a chart can be done independently of the series.

      Attaching an axis to a series cannot be done until the series is attached to the chart.

      Adding a series to a chart causes it to be rendered. (this may be a problem with qchartview rendering on every change?)

      Attaching the axis to the series causes the series to be rendered again.

      It is impossible to avoid this flicker because the axis cannot be attached to a series before the series is attached to the chart.

      This is a design flaw.

       SEE: QChart::addSeries:

      https://github.com/qt/qtcharts/blob/fe003ee4fcaae8ceb877112d63c22bda2e9f06fd/src/charts/qchart.cpp#L273

      SEE: QAbstractSeries::attachAxis:

      https://github.com/qt/qtcharts/blob/fe003ee4fcaae8ceb877112d63c22bda2e9f06fd/src/charts/qabstractseries.cpp#L382

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

            e0348803 Miikka Heikkinen
            liversedge Mark Liversedge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes