set diameter programmatically
-
- Posts: 798
- Joined: Tue Sep 07, 2021 10:11 am
Re: set diameter programmatically
Hello,
Please check the attached report.
Thank you.
Please check the attached report.
Thank you.
- Attachments
-
- DoughnutChart.mrt
- (53.55 KiB) Downloaded 67 times
- dmasterplan
- Posts: 143
- Joined: Thu Mar 17, 2022 4:04 am
- Location: Philippines
Re: set diameter programmatically
Hi,
Attached are the database and sample report.
I want the pie chart to programmatically set the diameter depending on the number of legends.
By the way, how to properly set the Value Data Column and Argument Data Column?
Value Data Column = int data type
Argument Data Column = varchar data type
Is it correct?
Legend doesn't turn to texts, only numbers
Please see attached files.
Great Thanks
Attached are the database and sample report.
I want the pie chart to programmatically set the diameter depending on the number of legends.
By the way, how to properly set the Value Data Column and Argument Data Column?
Value Data Column = int data type
Argument Data Column = varchar data type
Is it correct?
Legend doesn't turn to texts, only numbers
Please see attached files.
Great Thanks
- Attachments
-
- themasterplan.7z
- (195.65 KiB) Downloaded 67 times
-
- PMM-0001 (for testing laang).mrt
- (25.53 KiB) Downloaded 73 times
-
- Posts: 6302
- Joined: Tue Mar 20, 2018 5:34 am
Re: set diameter programmatically
Hello,
You can set the necessary option in the designer then open the Code tab and check how it should be set. Then you can use the similar code where you need it.
Thank you.
You can set the necessary option in the designer then open the Code tab and check how it should be set. Then you can use the similar code where you need it.
Thank you.
- Attachments
-
- Screenshot 2022-05-21 110554.png (150.93 KiB) Viewed 616 times
-
- Screenshot 2022-05-21 110643.png (233.93 KiB) Viewed 616 times
-
- Screenshot 2022-05-21 121041.png (176.37 KiB) Viewed 616 times
- dmasterplan
- Posts: 143
- Joined: Thu Mar 17, 2022 4:04 am
- Location: Philippines
Re: set diameter programmatically
thanks a lot.
much appreciated!
much appreciated!
-
- Posts: 6302
- Joined: Tue Mar 20, 2018 5:34 am
Re: set diameter programmatically
Hello,
You are welcome.
You are welcome.
- dmasterplan
- Posts: 143
- Joined: Thu Mar 17, 2022 4:04 am
- Location: Philippines
Re: set diameter programmatically
Hi,
Apologies for not replying fast to this. I experimented with the code and realized that I wasn't using a Doughnut chart. I was using a Pie chart.
so I instead, I used this code
and it worked smoothly!
Great Thanks
Apologies for not replying fast to this. I experimented with the code and realized that I wasn't using a Doughnut chart. I was using a Pie chart.
so I instead, I used this code
Code: Select all
(this.CPStage.Series[0] as Stimulsoft.Report.Chart.StiPieSeries).Diameter = 120F;
Great Thanks
-
- Posts: 798
- Joined: Tue Sep 07, 2021 10:11 am
Re: set diameter programmatically
Hello,
You are welcome!
You are welcome!