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

Bar3DSeries columnLabels and rowLabels not working.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.1
    • 6.8.0
    • Graphs: 3D
    • None
    • 3199d40a3 (dev), 5d9b1c958 (6.8)

    Description

      See the example below. It looks like columnLabels and rowLabels are reseted to defaults and user values don't get used.

      import QtQuick
      import QtGraphs
      
      Window {
        id: root
        width: 1280
        height: 960
        visible: true
        title: qsTr("Graphs 3D - Bar Graph")
      
        Bars3D { 
          id: barGraph
          anchors.fill: parent
      
          Bar3DSeries {
            id: barSeries
            columnLabels: [
              "col 1",
              "col 2",
              "col 3",
              "col 4",
              "col 5",
              "col 6",
              "col 7",
              "col 8",
              "col 9",
              "col 10"
            ]
            rowLabels: [
              "row 1",
              "row 2",
              "row 3",
              "row 4",
              "row 5",
              "row 6",
              "row 7",
              "row 8",
              "row 9",
              "row 10"
            ]
      
            ItemModelBarDataProxy {
              itemModel: dataModel
              columnRole: "xPos"
              rowRole: "zPos"
              valueRole: "yPos"
            }
          }
        }
      
        ListModel {
          id: dataModel
          Component.onCompleted: {
            for (let i = 0; i < 10; ++i) {
              for (let j = 0; j < 10; ++j) {
                dataModel.append({"xPos": i, "yPos": i + j, "zPos": j})
              }
            }
          }
        }
      } 

      Regression from QtDataVisualization

      Attachments

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

        Activity

          People

            spouke Sakaria Pouke
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes