Pie-Series Marks

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Woehr.Mi
Newbie
Newbie
Posts: 38
Joined: Mon Jun 23, 2008 12:00 am

Pie-Series Marks

Post by Woehr.Mi » Thu Jan 22, 2009 1:08 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 22, 2009 2:15 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Woehr.Mi
Newbie
Newbie
Posts: 38
Joined: Mon Jun 23, 2008 12:00 am

Post by Woehr.Mi » Thu Jan 22, 2009 2:29 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 22, 2009 2:43 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jan 28, 2009 9:59 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply