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

Qt Graphs 2D should allow sub PieSlices inside PieSlice

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.9.1
    • Graphs: 2D
    • None

    Description

      The chart below is from https://www.nta.go.jp/taxes/kids/hatten/page17.htm and it shows an official data for Japanese government's budget for a certain year.
      As you can see, on the right side of the chart, there's a large "meta" slice which takes up 61.8% of the pie chart. 
      Inside it, there are "sub" slices, such as the yellow one with 15.9%, orange one with 15.1%, etc.

      I've tried this;

      PieSeries {
        PieSlice { // meta
          label: "meta slice"
          value: 2
          PieSlice { // sub
            id: sub1
            value: 1
          }
          PieSlice { // sub
            id: sub2
            value: 3
          }
        }
        PieSlice {
          value: 1
        }
      }

      But unfortunately it failed with this runtime error;

      Cannot assign to non-existent default property 

      Qt Graphs 2D should allow users to draw this chart easily.

      Attachments

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

        Activity

          People

            kagro Kaj Grönholm
            mikio mikio hirai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes