How can I implement custom chart colors?

Stimulsoft Reports.WEB discussion
lucasrinaldi
Posts: 44
Joined: Wed Jul 12, 2023 8:18 pm

How can I implement custom chart colors?

Post by lucasrinaldi »

I work for a company that needs to render the chart pie using the colors that the customer previously selected. }
The hex code is stored in the database, and we need to input the hex color into the pie.
Checking how to do it, I encountered some old posts without a solution.
Is there any solution for this?

I uploaded a pic to illustrate our problem: each slice of the pie has its custom color.
Attachments
Screenshot 2023-10-12 105928.png
Screenshot 2023-10-12 105928.png (25.68 KiB) Viewed 140123 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: How can I implement custom chart colors?

Post by Lech Kulikowski »

Hello,

Please try to use the AutoSeriesColorDataColumn property.

Thank you.
lucasrinaldi
Posts: 44
Joined: Wed Jul 12, 2023 8:18 pm

Re: How can I implement custom chart colors?

Post by lucasrinaldi »

Lech Kulikowski wrote: Mon Oct 16, 2023 7:30 pm Hello,

Please try to use the AutoSeriesColorDataColumn property.

Thank you.
I do not have this property option, as I attached it below.
The stimulsoft designer version is attached too.
Attachments
Screenshot 2023-10-16 165217.png
Screenshot 2023-10-16 165217.png (16.71 KiB) Viewed 140042 times
Screenshot 2023-10-16 165031.png
Screenshot 2023-10-16 165031.png (27.47 KiB) Viewed 140042 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: How can I implement custom chart colors?

Post by Lech Kulikowski »

Hello,

Please check the sample report.

Thank you.
Attachments
Report.mrt
(26.23 KiB) Downloaded 569 times
Screenshot 2023-10-18 104650.png
Screenshot 2023-10-18 104650.png (298.14 KiB) Viewed 140018 times
lucasrinaldi
Posts: 44
Joined: Wed Jul 12, 2023 8:18 pm

Re: How can I implement custom chart colors?

Post by lucasrinaldi »

I will test as soon as my sprint is finished and return to the SLA team. Thanks for the update.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: How can I implement custom chart colors?

Post by Lech Kulikowski »

Hello,

You are welcome.
lucasrinaldi
Posts: 44
Joined: Wed Jul 12, 2023 8:18 pm

Re: How can I implement custom chart colors?

Post by lucasrinaldi »

Did you use the same version as I mentioned?
My page properties aren't the same as yours as shown in the picture attached.
Attachments
Screenshot 2023-10-30 084745.png
Screenshot 2023-10-30 084745.png (31.08 KiB) Viewed 137500 times
lucasrinaldi
Posts: 44
Joined: Wed Jul 12, 2023 8:18 pm

Re: How can I implement custom chart colors?

Post by lucasrinaldi »

My report is attached below:
Attachments
adherenceItems.mrt
(68.41 KiB) Downloaded 614 times
Max Shamanov
Posts: 792
Joined: Tue Sep 07, 2021 10:11 am

Re: How can I implement custom chart colors?

Post by Max Shamanov »

Hello,

This is not a page property, it is a diagram property.
Please refer to the attached image.

Thank you.
Attachments
Designer_zPdcnzjixX.png
Designer_zPdcnzjixX.png (184.93 KiB) Viewed 137137 times
lucasrinaldi
Posts: 44
Joined: Wed Jul 12, 2023 8:18 pm

Re: How can I implement custom chart colors?

Post by lucasrinaldi »

I actually found what you mean, thanks for that!

But now I have another problem, I am referencing my color column, but it doesn't work. Does it need custom formatting? I've attached a print screen to clarify.
Attachments
Screenshot 2023-11-10 114311.png
Screenshot 2023-11-10 114311.png (97.23 KiB) Viewed 133249 times
Post Reply