# Quickchart font color

**URL:** https://community.glideapps.com/t/quickchart-font-color/31706
**Category:** Ask for Help
**Created:** [September 13, 2021, 9:00am UTC](https://community.glideapps.com/t/quickchart-font-color/31706 "2021-09-13T09:00:48Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Lin\_Altshuler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lin_altshuler/32/32591_2.png) [@Lin\_Altshuler](https://community.glideapps.com/u/Lin_Altshuler)
#### Post date: [September 13, 2021, 9:00am UTC](https://community.glideapps.com/t/quickchart-font-color/31706/1 "2021-09-13T09:00:48Z")

</div>

Hi guys,  
I designed a chart for my app but I cant figure out how to change the text color in a pie chart.  
I tried: color, textColor, fontColor…  
nothing in the documentation ☹  
I also need to resize the chart to get is smaller without changing the labels.  
I am also trying to insert this animation: animation.animateRotate: true  
but have no idea where to put in.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/6/b60279cfb61687ed383c8b08a832f14dd8c35a1e.png)

```auto
{
  type: 'pie',
  data: {
    datasets: [
      {
        data: [100,125,45],
        backgroundColor: [
          '#f16558',
          '#965d5a',
           '#eabbb9'
        ],
        borderColor:'black',
        borderWidth: 0.5,
        
      },
    ],
    labels: ['פחמימה','חלבון','שומן']
    },
}

```

Please advice  
Thanks

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 9:25am UTC](https://community.glideapps.com/t/quickchart-font-color/31706/2 "2021-09-13T09:25:55Z")

</div>

Try this.

```auto
{
  type: 'pie',
  data: {
    datasets: [
      {
        data: [100,125,45],
        backgroundColor: [
          '#f16558',
          '#965d5a',
           '#eabbb9'
        ],
        borderColor:'black',
        borderWidth: 0.5,
        
      },
    ],
    labels: ['פחמימה','חלבון','שומן']
    },
   options: { 
            legend: {
                labels: {
                    fontColor: "black",
                    fontSize: 12
                }
            },
            plugins: {
      datalabels: {
        color: "white",
      }
   }
}
}

```

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/4/c4a569bea09b0a79ec61a6f42b30ee0fdb6a8ad8.png)

---

<div class="post-metadata">

### Author: ![Lin\_Altshuler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lin_altshuler/32/32591_2.png) [@Lin\_Altshuler](https://community.glideapps.com/u/Lin_Altshuler)
#### Post date: [September 13, 2021, 9:32am UTC](https://community.glideapps.com/t/quickchart-font-color/31706/3 "2021-09-13T09:32:14Z")

</div>

Exactly!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/2/527fe04aa1137c9af492c1c29b5820e2f2aacf5a.png)

---

<div class="post-metadata">

### Author: ![Lin\_Altshuler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lin_altshuler/32/32591_2.png) [@Lin\_Altshuler](https://community.glideapps.com/u/Lin_Altshuler)
#### Post date: [September 13, 2021, 9:36am UTC](https://community.glideapps.com/t/quickchart-font-color/31706/4 "2021-09-13T09:36:14Z")

</div>

anything on the animation and the pie size?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 10:16am UTC](https://community.glideapps.com/t/quickchart-font-color/31706/5 "2021-09-13T10:16:04Z")

</div>

How exactly do you want to change the size? I assume keeping everything else the same but the pie to be larger/smaller?

And what animation do you want?

It may not be available with Quickchart alone but Chart.js can support it through Yes-Code column.

---

<div class="post-metadata">

### Author: ![Lin\_Altshuler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lin_altshuler/32/32591_2.png) [@Lin\_Altshuler](https://community.glideapps.com/u/Lin_Altshuler)
#### Post date: [September 13, 2021, 10:29am UTC](https://community.glideapps.com/t/quickchart-font-color/31706/6 "2021-09-13T10:29:05Z")

</div>

Yes, keeping everything else the same and the pie smaller.  
I would like to have it appear rotating

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/4/945425b9caeacafe020c8349506b4d50338505ba.png).

I don’t really know how to use YC ☹

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 12:45pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/7 "2021-09-13T12:45:26Z")

</div>

Successfully done.

Demo:

Link to plugin your YC column:

[https://customized-pie-chart-js.thinhdinh.repl.co](https://customized-pie-chart-js.thinhdinh.repl.co)

Adapted from @Manu.n’s brilliant thread:

> [@Chart Polar](https://community.glideapps.com/t/chart-polar/31692):
>
> Hello, Here is a first approach to using graphics in addition to those offered by Glide. I used an open source library: there is another chart model than the one in the demo. WARNING: to integrate the graphic, I use the webview component, so you must have a pro package for this to work in publication !!! YC link [https://Graph-URI.manun2.repl.co](https://Graph-URI.manun2.repl.co)

---

<div class="post-metadata">

### Author: ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)
#### Post date: [September 13, 2021, 12:47pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/8 "2021-09-13T12:47:50Z")

</div>

oh too loud, much better than mine.  
I just had the idea of ​​proposing a version where instead of label, data, background it is possible to transmit the config, so that everyone can from the doc make their graph.

---

<div class="post-metadata">

### Author: ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)
#### Post date: [September 13, 2021, 12:53pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/9 "2021-09-13T12:53:04Z")

</div>

What is the data format for QuickChart?  
It’s like the config?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 12:54pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/10 "2021-09-13T12:54:02Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/e/dea3f3c4a5f424153a232eec43c9a78bcb839936.png)

Now supporting default width, height, label colors.

> [@Manu.n](#):
>
> What is the data format for QuickChart?

If you ask about the default data in the chart I defaulted it to what she described in her original post.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 12:54pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/11 "2021-09-13T12:54:38Z")

</div>

Yeah this can work, we can have the chart style customized to, to make it even more robust.

---

<div class="post-metadata">

### Author: ![Lin\_Altshuler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lin_altshuler/32/32591_2.png) [@Lin\_Altshuler](https://community.glideapps.com/u/Lin_Altshuler)
#### Post date: [September 13, 2021, 12:54pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/12 "2021-09-13T12:54:57Z")

</div>

🤯 🤯 🤯

That looks amazing!

but I’m stuck…

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/6/f6236d2a0d1ebdac4b221ea9eb6cc42ef8130663.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/2/f25de1ab02c4c1ac13b4e2c486a149d4c5b31fca.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/f/1fddd15eef869e7cd4cc7f9a6b15a431c7954db9.png)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 12:55pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/13 "2021-09-13T12:55:50Z")

</div>

You just need to plug the data in. I already did that work for you.

Have a template that only returns Carbs, Protein, Fat by its data.

---

<div class="post-metadata">

### Author: ![Lin\_Altshuler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lin_altshuler/32/32591_2.png) [@Lin\_Altshuler](https://community.glideapps.com/u/Lin_Altshuler)
#### Post date: [September 13, 2021, 12:57pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/14 "2021-09-13T12:57:27Z")

</div>

That is unbelievable…  
thanks so much.  
If I ever want to change the design or the chart I will have to ask for your help again, correct?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 12:57pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/15 "2021-09-13T12:57:46Z")

</div>

If you want to make anything customizable then just tell me in this thread. I will make that part a variable so you just have to change it in the editor.

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [September 13, 2021, 12:58pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/16 "2021-09-13T12:58:01Z")

</div>

We should be able to use parameters to define the type of chart, right? That way we don’t need separate repl’s for each chart type?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 12:58pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/17 "2021-09-13T12:58:33Z")

</div>

Yeah you’re right. We make this a variable.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/4/748ba5a0b6925cbacb109fd89250bf8eb6bdb692.png)

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [September 13, 2021, 12:59pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/18 "2021-09-13T12:59:42Z")

</div>

Yeah! Want to try it? I’m not proficient enough in JS to get this done quickly…

---

<div class="post-metadata">

### Author: ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)
#### Post date: [September 13, 2021, 12:59pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/19 "2021-09-13T12:59:51Z")

</div>

> [@Robert\_Petitto](#):
>
> We should be able to use parameters to define the type of chart, right? That way we don’t need separate repl’s for each chart type?

It was my proposal

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [September 13, 2021, 1:00pm UTC](https://community.glideapps.com/t/quickchart-font-color/31706/20 "2021-09-13T13:00:43Z")

</div>

Hehe if I have some time this week I would love to try it. Also make the colors customizable too. I love some Glide chart color palettes but sometimes I want to make my own as well…

[Next page](https://community.glideapps.com/t/quickchart-font-color/31706.md?page=2)
