appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.3k stars 3.71k forks source link

[Feature]: Changing pie chart color #35737

Open hubearmy opened 2 months ago

hubearmy commented 2 months ago

Is there an existing issue for this?

Summary

When the data is connected from api, you aren't allowed to alter the color for the pie graph.

Why should this be worked on?

It is important to change the color for the graph since color is a critical factor for user experience

daaliachhak17 commented 2 months ago

ticket created in Jira-https://zemoso.atlassian.net/browse/TNOSB-530

raushan3737 commented 2 months ago

Hi @hubearmy , i was trying to alter the chart color i am getting the option to alter chart color except pie chart. Currently i am loading data from statically, Can you please indicate which segment of chart should have the custom color for the below graph? image

hubearmy commented 2 months ago

The color of the pie (the four colors inside) should be able to alter. I can't do that when the data is connected from api (js mode)/

Raushan Kumar Gupta @.***> 於 2024年8月20日 週二 下午5:57寫道:

Hi @hubearmy https://github.com/hubearmy , i was trying to alter the chart color i am getting the option to alter chart color except pie chart. Currently i am loading data from statically, Can you please indicate which segment of chart should have the custom color for the below graph? image.png (view on web) https://github.com/user-attachments/assets/825a0876-2d93-4f94-a094-cbe27805b55d

— Reply to this email directly, view it on GitHub https://github.com/appsmithorg/appsmith/issues/35737#issuecomment-2298460658, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ6EWQAILP523YPFZ6DWLQ3ZSMHI5AVCNFSM6AAAAABMW4A2G6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYGQ3DANRVHA . You are receiving this because you were mentioned.Message ID: @.***>

raushan3737 commented 2 months ago

Hi @hubearmy , If we want to alter the color of each section of pie chart we need to take n input as each section will contain unique color. Please give your suggestion on it.

In case of other chart, we are applying one color only: image

hubearmy commented 2 months ago

What I mean is there’s no place or way to alter the color of the pie chart when you series data is connected from database/api. [image: 螢幕擷取畫面_21-8-2024_104754_app.appsmith.com.jpeg]

Raushan Kumar Gupta @.***> 於 2024年8月21日 週三 上午10:36寫道:

Hi @hubearmy https://github.com/hubearmy , If we want to alter the color of each section of pie chart we need to take n input as each section will contain unique color. Please give your suggestion on it.

In case of other chart, we are applying one color only: image.png (view on web) https://github.com/user-attachments/assets/3ebf49b5-f161-4011-86db-6aa4bf960586

— Reply to this email directly, view it on GitHub https://github.com/appsmithorg/appsmith/issues/35737#issuecomment-2300347833, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ6EWQCRUJSJIKOTYTE4K7TZSP4JJAVCNFSM6AAAAABMW4A2G6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBQGM2DOOBTGM . You are receiving this because you were mentioned.Message ID: @.***>

raushan3737 commented 2 months ago

Hi @hubearmy , Attached pic is not visible for me. Can you please provide the pic again. Like how you are connecting to api.

Points to consider: If we want to add the option to alter the color then, we have to take n input for the color for each section of pie chart so that it will contain unique color to represent various segment of the data.

Any thoughts on it.

Sai6347 commented 3 weeks ago

Hi @hubearmy, can you please provide how you are connecting to API?

If we add data statically unique colors are coming on the pie chart automatically. For the other graphs we have an option to change the colors manually. image image