Series Marks Text formatting issues

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sugan
Newbie
Newbie
Posts: 18
Joined: Tue Oct 23, 2012 12:00 am

Series Marks Text formatting issues

Post by Sugan » Fri Oct 26, 2012 7:33 am

Hi,

I'm facing issues when trying to format the Text displayed in the Series Marks.

series.Marks.TextAlign = StringAlignment.Near; should align the text in the series marks to left for my locale. But it always aligns it to center.

Also, I'm not sure how the series marks can be formatted with HTML tags.
series.Marks.TextFormat = Steema.TeeChart.Drawing.TextFormat.Html; is also not taking effect.

Here is the sample code:

Code: Select all

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Steema.TeeChart.Styles;
using Steema.TeeChart.Tools;

namespace TooltipTest
{
	public partial class Form2 : Form
	{
		public Form2()
		{
			InitializeComponent();
			tChart1.Aspect.View3D = false;
		}


		private void Form2_Load(object sender, EventArgs e)
		{
			tChart1.Axes.Bottom.Automatic = false;
			tChart1.Axes.Bottom.SetMinMax(DateTime.Now, DateTime.Now.AddHours(1));
			tChart1.Axes.Left.SetMinMax(0, 50);
			
			ImagePoint series = new ImagePoint(tChart1.Chart);
			series.Pointer.HorizSize = 16;
			series.Pointer.VertSize = 16;
			series.Add(DateTime.Now.AddMinutes(20), 10, "Test1\r\nTest12\r\nTest123");
			series.Add(DateTime.Now.AddMinutes(30), 30, "<html><b>Bold Text</b><br><u>Underlined Text</u></html>");

			//This should left align the text in the Series Marks; but not happening
			series.Marks.TextAlign = StringAlignment.Near;

			//This is not taking effect; how should I format the text, so that the HTML formatting works properly ?
			series.Marks.TextFormat = Steema.TeeChart.Drawing.TextFormat.Html;

			series.Marks.OnTop = true;
			series.Marks.Visible = true;
			series.Marks.ArrowLength = 10;
			series.Marks.Style = MarksStyles.Label;
			tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value;

			tChart1.Legend.Visible = false;
		}

	}
}
Here is the screenshot:
Marks.png
Series Marks
Marks.png (53.54 KiB) Viewed 6734 times
Please advise me on this.
Thanks.
Regards,
Sugan

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Series Marks Text formatting issues

Post by Sandra » Fri Oct 26, 2012 3:15 pm

Hello Sugan,

I'm afraid that this feature is still not fully implemented and thus not working.I have added your request in wish list with number[TF02016393]. We will try to fix it for upcoming versions of TeeChartFor.Net.

Thanks,
Best Regards,
Sandra Pazos / 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

Sugan
Newbie
Newbie
Posts: 18
Joined: Tue Oct 23, 2012 12:00 am

Re: Series Marks Text formatting issues

Post by Sugan » Fri Jul 26, 2013 8:36 am

Hi,

When can we expect an update for this ?
Regards,
Sugan

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Series Marks Text formatting issues

Post by Yeray » Fri Jul 26, 2013 3:01 pm

Hi Sugan,

I'm afraid I can't tell you a date for this to be implemented.
I recommend you to be aware at the following channels for new release announcements and what's implemented on them:
- Support forum.
- RSS news feed
- Twitter
- Facebook
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply