# How to insert a new value in pie chart?

**URL:** <https://community.thunkable.com/t/how-to-insert-a-new-value-in-pie-chart/1573937>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [October 21, 2021, 4:21pm UTC](https://community.thunkable.com/t/how-to-insert-a-new-value-in-pie-chart/1573937 "2021-10-21T16:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawangkaratpanuwatdb](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@pawangkaratpanuwatdb](https://community.thunkable.com/u/pawangkaratpanuwatdb)\
**Post date:** [October 21, 2021, 4:21pm UTC](https://community.thunkable.com/t/how-to-insert-a-new-value-in-pie-chart/1573937/1 "2021-10-21T16:21:45Z")

</div>

google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart);

```
  function drawChart() {

    var data = google.visualization.arrayToDataTable([
      ['Task', 'Hours per Day'],
      ['Work', 11],
      ['Eat', 2],
      ['Commute', 2],
      ['Watch TV', 2],
      ['Sleep', 7]
    ]);

    var options = {
      title: 'My Daily Activities'
    };

    var chart = new google.visualization.PieChart(document.getElementById('piechart'));

    chart.draw(data, options);
  }
</script>

```

 [/quote]

Can you give advice for me to making a block plz.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:14pm UTC](https://community.thunkable.com/t/how-to-insert-a-new-value-in-pie-chart/1573937/2 "2024-11-08T13:14:40Z")

</div>


