AnsweredAssumed Answered

Is there a way to display value instead of percentage for pie charts?

Question asked by jeoshita on Nov 19, 2019

I want to remove the percentage and only show value in the label and also the tooltip. Also is it possible to concatenate text with field where I can add "$" in front of the value?

{
  "type": "pie",
  "datasets": [
    {
      "url": "URL",
      "query": {
        "where": "FOCUS_AREA='parksrec' AND UNIQUE_ID='1'",
        "orderByFields": "Source",
        "groupByFieldsForStatistics": "Source",
        "outStatistics": [
          {
            "statisticType": "sum",
            "onStatisticField": "Amount",
            "outStatisticFieldName": "Amount"
          }
        ]
      }
    }
  ],
  "series": [
    {
     
      "category": {
        "field": "Source",
        "label": "Source"
      },
      "value": {
        "field": "Amount",
        "label": "Funding"
      }
    }
  ],
  "style": {
    "padding": {
      "top": 5,
      "bottom": 5
    },
    "pie": {
      "expand": -50
    }
  },
"legend": {
    "visible": true
  }
}

Outcomes