Change the color of the charts

Insert this code into Page Settings > Custom Code > Header field and replace BLOCKID with your block ID. Please note you need to check it with the published app; it will not show the changed color in preview or in Studio.

<script> 
window['BlockID-colors'] = ['#FE8070', '#DD7E6B'];
</script>

2 Likes

Thank you, works great!

Thanks for sharing @Aramo – and welcome to the community!

Hi everyone, I would like to know which custom code I should use to change the colors of the chart based on given values. For example, I would like to chart the goals based on the status (achieved, missed, in progress) of the goals. Thanks in advance