Page 1 of 1

Pie-Series Marks

Posted: Thu Jan 22, 2009 1:08 pm
by 10549438
Hello,

when I set Pie-Series "Marks.Visible"-Property to true,
the Marks are not visible on every piece of the Pie-Series. Is this a bug of the Webchart (I'm using Version 3.5.3274.30663)?


Best regards
Michael

Posted: Thu Jan 22, 2009 2:15 pm
by narcis
Hello Michael,

Could you please send us a s code snippet or a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments or at our upload page.

Thanks in advance.

Posted: Thu Jan 22, 2009 2:29 pm
by 10549438
Hello NarcĂ­s,

here is a code example:

Code: Select all

public partial class _Default : System.Web.UI.Page 
{
    Steema.TeeChart.Chart chart1;

    Steema.TeeChart.Styles.Pie pie1;
    
    protected void Page_Load(object sender, EventArgs e)
    {

        chart1 = WebChart1.Chart;

        chart1.Aspect.View3D = true;
        chart1.Legend.Visible = true;
        chart1.Legend.TextStyle = Steema.TeeChart.LegendTextStyles.RightPercent;
        chart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom;

        pie1 = new Steema.TeeChart.Styles.Pie(chart1);

        pie1.Marks.Visible = true;

        pie1.Add(10, "Tes1", Color.Red);
        pie1.Add(20, "Test2", Color.Green);
        pie1.Add(5, "Test3", Color.Violet);
        
        pie1.Marks.Visible = true;
    }
}
I've uploaded a picture of the Webchart called "PieMarks.PNG", where you can see the result of this code. The Webcharts TempChart-Property is set to "Httphandler".

Best Regards
Michael

Posted: Thu Jan 22, 2009 2:43 pm
by narcis
Hi Michael,

Thanks for your code snippet. I've been able to reproduce the issue here and I think it's a bug. I've added the defect to the bug list (TF02013775) to be fixed for next releases.

Posted: Wed Jan 28, 2009 9:59 am
by narcis
Hi Michael,

Investigating this issue we found that setting Marks.SoftClip=false solves the problem, for example:

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			Steema.TeeChart.Styles.Pie pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart);

			pie1.Marks.Visible = true;
			pie1.Marks.SoftClip = false;

			pie1.Add(10, "Tes1", Color.Red);
			pie1.Add(20, "Test2", Color.Green);
			pie1.Add(5, "Test3", Color.Violet);
		}
We will also try to fix it for the next maintenance release.