Polar Series Axis Labels
Polar Series Axis Labels
When I draw a Polar series wome of the angle labels, located on the outside circle, are getting clipped. It is happening to labels that are greater than 90 degrees. See attached JPEG file.
Re: Polar Series Axis Labels
Hello John,
Using next simple code and using last version of TeeChart.Net:
And I have gotten next image:
Could you check if your problem appears using previous code? Moreover, can you tell us, which version of TeeChart.Net are you using, now?
Thanks,
Using next simple code and using last version of TeeChart.Net:
Code: Select all
Steema.TeeChart.Styles.Polar series1;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
tChart1.Dock = DockStyle.Fill;
series1 = new Steema.TeeChart.Styles.Polar(tChart1.Chart);
series1.FillSampleValues();
series1.Circled = true;
series1.Brush.Visible = false;
series1.CircleLabels = true;
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Polar Series Axis Labels
I will check your code tomorrow. I wanted to add that I am using the following event handlers to clip data outside the display space.
private void polarChart_BeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.ClipEllipse(polarChart.Chart.ChartRect);
}
private void polarChart_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.ClearClipRegions();
}
I am wondering if this causes the labels to be clipped.
private void polarChart_BeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.ClipEllipse(polarChart.Chart.ChartRect);
}
private void polarChart_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.ClearClipRegions();
}
I am wondering if this causes the labels to be clipped.
Re: Polar Series Axis Labels
Hello John,
I could reproduce your problem and this is caused to ClipEllipse. Could you explain exactly because you need ClipEllipse, so we can find a solution for it ? On the other hand, if you reduce the margin of labels, you can get that these appears correctly . You can do something as next:
I hope will helps.
Thanks,
I could reproduce your problem and this is caused to ClipEllipse. Could you explain exactly because you need ClipEllipse, so we can find a solution for it ? On the other hand, if you reduce the margin of labels, you can get that these appears correctly . You can do something as next:
Code: Select all
Steema.TeeChart.Styles.Polar series1;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
series1 = new Steema.TeeChart.Styles.Polar(tChart1.Chart);
series1.FillSampleValues();
series1.Circled = true;
series1.Brush.Visible = false;
series1.CircleLabels = true;
series1.LabelsMargin = 0;
tChart1.BeforeDraw +=new Steema.TeeChart.PaintChartEventHandler(tChart1_BeforeDraw);
tChart1.AfterDraw +=new Steema.TeeChart.PaintChartEventHandler(tChart1_AfterDraw);
}
private void tChart1_BeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
Rectangle rect = tChart1.Chart.ChartRect;
g.ClipEllipse(rect);
}
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.ClearClipRegions();
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |