Text inside a pie chart

0
Does anybody know if it is possible to get a text inside of a pie (donut) chart as in the picture below? Preferably dynamic text.
asked
1 answers
3

Yep, see https://mydemoversion8-sandbox.mxapps.io/p/charts tab AnyChart, scroll down to the piechart and click the button ‘Toggle editor’. Adding this

  "annotations": [
    {
      "font": {
        "size": 20
      },
      "showarrow": false,
      "text": "GHG",
      "x": 0.5,
      "y": 0.5
    }
  ]

to the layout will get you:

For more tinkering with the pie, see https://plotly.com/javascript/pie-charts/

 

answered