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.
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.
- Screenshot 2022-05-21 110554.png (150.93 KiB) Viewed 65 times
- Screenshot 2022-05-21 110643.png (233.93 KiB) Viewed 65 times
- Screenshot 2022-05-21 121041.png (176.37 KiB) Viewed 65 times
You are welcome.
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 as Stimulsoft.Report.Chart.StiPieSeries).Diameter = 120F;
You are welcome!