pie chart issues and interval issue

Stimulsoft Reports.NET discussion
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

pie chart issues and interval issue

Post by dmasterplan »

1) Why does the chart is covering the header when
2) there is enough space between the end of the charts and end of the Report Title
3) how can I make the two pie charts the same size? AND distribute pie segments equally? (I think it divides 1/6th of the pie)
4) I have 222 data (as packages), why does the interval look like this? (see image - highlighted in red)

I have this as the condition for interval:

Code: Select all

if(vTotalPackages == 10) {
	this.Chart3_Area.YAxis.Labels.Step = 2;
} else if(vTotalPackages == 800) {
	this.Chart3_Area.YAxis.Labels.Step = 160;
} else if(vTotalPackages > 800) {
	this.Chart3_Area.YAxis.Labels.Step = 200;
} else {
	this.Chart3_Area.YAxis.Labels.Step = 1;
}
Attachments
1.png
1.png (74.56 KiB) Viewed 627 times
2.png
2.png (76.81 KiB) Viewed 627 times
3.png
3.png (48.28 KiB) Viewed 627 times
4.png
4.png (19.24 KiB) Viewed 627 times
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: pie chart issues and interval issue

Post by dmasterplan »

Please ignore item #4

I realized that my code lacks a condition:

if(vTotalPackages == 10) {
this.Chart3_Area.YAxis.Labels.Step = 2;
}else if (vTotalPackages >= 200){
this.Chart3_Area.YAxis.Labels.Step = 50;
}
else if(vTotalPackages == 800) {
this.Chart3_Area.YAxis.Labels.Step = 160;
} else if(vTotalPackages > 800) {
this.Chart3_Area.YAxis.Labels.Step = 200;
} else {
this.Chart3_Area.YAxis.Labels.Step = 1;
}


Item number 4 is solved.

Questions are just items 1,2, and 3.
Please help me. I really really need to fix these. I seriously need help.
Last edited by dmasterplan on Mon May 02, 2022 2:20 pm, edited 1 time in total.
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: pie chart issues and interval issue

Post by dmasterplan »

Another question:

How to separate chart space from the legend space.
Two Pie charts need to be same size but one has two legend items and the other has variable number in range 2-10 values.
How to separate Pie chart area from the Legend area?
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: pie chart issues and interval issue

Post by Lech Kulikowski »

Hello,

1) Why does the chart is covering the header when
2) there is enough space between the end of the charts and end of the Report Title

Please send us a sample report with test data that reproduces the issue for analysis.

3) how can I make the two pie charts the same size? AND distribute pie segments equally? (I think it divides 1/6th of the pie)

There I s the task in our to-do list.

Thank you.
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: pie chart issues and interval issue

Post by dmasterplan »

I will try to convert the SQL output to XML and send you test the report and sample data.
OR what's the best way to send the data? the database is huge and I can't send it.
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: pie chart issues and interval issue

Post by dmasterplan »

Hi,

Here is the sample report with the SQL result converted to XML.
I only generated the XML for the pie chart that is covering the header.

Edited:
I added xml datasource for dsPackages

Please tell me if you have anything needed.

Great Thanks
Attachments
dsPackages.xml
(73.4 KiB) Downloaded 63 times
ContractPackageStage.xml
(1.23 KiB) Downloaded 60 times
PMM-0001 - for testing.mrt
(99.24 KiB) Downloaded 56 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: pie chart issues and interval issue

Post by Lech Kulikowski »

Hello,

It is not possible to run your report with the sent data.
Could you prepare a simple report that we can run and reproduce the issue, and send us for analysis?

Thank you.
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: pie chart issues and interval issue

Post by dmasterplan »

Hi,

Is this okay? I have created a database with the data for Contact Package Stage pie chart.

Great Thanks
Attachments
dmasterplanDB.7z
(195 KiB) Downloaded 58 times
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: pie chart issues and interval issue

Post by dmasterplan »

I'm sorry, I forgot to attach the sample report.
Here it is.

1. There is a space between the end of the chart and end of the header.
2. When previewed, the chart covers the header.
Attachments
1 chart space.png
1 chart space.png (31.57 KiB) Viewed 555 times
2 chart covering the top header.png
2 chart covering the top header.png (20.16 KiB) Viewed 555 times
TESTING.mrt
(40.52 KiB) Downloaded 57 times
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: pie chart issues and interval issue

Post by dmasterplan »

dmasterplan wrote: Mon May 02, 2022 11:38 am 1) Why does the chart is covering the header when
2) there is enough space between the end of the charts and end of the Report Title
3) how can I make the two pie charts the same size? AND distribute pie segments equally? (I think it divides 1/6th of the pie)
4) I have 222 data (as packages), why does the interval look like this? (see image - highlighted in red)

I have this as the condition for interval:

Code: Select all

if(vTotalPackages == 10) {
	this.Chart3_Area.YAxis.Labels.Step = 2;
} else if(vTotalPackages == 800) {
	this.Chart3_Area.YAxis.Labels.Step = 160;
} else if(vTotalPackages > 800) {
	this.Chart3_Area.YAxis.Labels.Step = 200;
} else {
	this.Chart3_Area.YAxis.Labels.Step = 1;
}
Hi,

I think the segments are correct.
1. this pie chart divides the segments correctly as the segment with green color has 7 count so it has the biggest segment.
2. this pie chart segment division is correct as well as "Awaiting Tender" (light green) has 197 count so it has the biggest share.

I think this is not an issue.

Great Thanks
Attachments
1.png
1.png (43.22 KiB) Viewed 539 times
2.png
2.png (74.43 KiB) Viewed 539 times
Post Reply