0

I am trying to get clicked section label name of the 3D Pie Chart Google

  <Chart
  chartType="PieChart"
  data={this.state.agentsummary}
  options={options}
  width={"100%"}
  height={"600px"}
  chartEvents={chartEvents}
  />

// but I got null value from row selection

const chartEvents = [
      {
        eventName: "select",
        callback({ chartWrapper }) {
          console.log("Selected ", chartWrapper.getChart().getSelection()[0]);
        },
      },
    ];
Wimanicesir
  • 4,606
  • 2
  • 11
  • 30
Yuvaraj M
  • 171
  • 1
  • 1
  • 6

0 Answers0