piechart to show Data

Hi,

I am trying to show data on piechart, the field make has different data. 

I want to segregate the data into let's Ford and non Ford.

How can I do that?

{
  a!pieChartField(
    data: 'recordType!{aa4ce38f-1a9d-4827-af51-e2ccb80a2c8b}AS Vehicle',
    config: a!pieChartConfig(
      primaryGrouping: a!grouping(
        field: 'recordType!{aa4ce38f-1a9d-4827-af51-e2ccb80a2c8b}AS Vehicle.fields.{7aa3dcda-863a-4271-9034-85821a2bd453}make',
        alias: "vehicleMake_primaryGrouping"
      ),
      measures: {
        a!measure(
          function: "COUNT",
          field: 'recordType!{aa4ce38f-1a9d-4827-af51-e2ccb80a2c8b}AS Vehicle.fields.{595da20e-a849-4c36-a57e-d569453c622f}vehicleID',
          alias: "vehicleId_count_measure1"
        )
      },
      sort: {
        a!sortInfo(
          field: "vehicleId_count_measure1",
          ascending: false
        )
      },
      dataLimit: 100
    ),
    label: "Vehicles by Make",
    labelPosition: "ABOVE",
    showDataLabels: true,
    showAsPercentage: true,
    colorScheme: "RAINFOREST",
    style: "DONUT",
    seriesLabelStyle: "LEGEND",
    height: "MEDIUM",
    refreshAfter: "RECORD_ACTION"
  )
}

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data