Hello, Team!
We are using version 2.0 of TeeChart library for our WinForm application.
Is it possible to create custom PointerStyle in addition to values in PointerStyles enum. Actually i'm interested in semi-sphere figure.
If it's not possible then is it possible to distinguish points on the same line in some other way - for example with blur, glow, canvas or with other effects like this for version 2.0.
Tnanks!
Custom PointerStyle
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi gs,
Yes, you can implement your own series inheriting from existing Points series and changing its draw method, someting as in the example I posted here:
http://www.teechart.net/support/viewtopic.php?t=4309
Yes, you can implement your own series inheriting from existing Points series and changing its draw method, someting as in the example I posted here:
http://www.teechart.net/support/viewtopic.php?t=4309
Best Regards,
Narcís Calvet / 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 |
Thanks, quite helpful but actually I would like to see not another line with custom drawing (or pointer style)
but line with different styles based on "state" of the concrete point, something like this in pseudocode:
If it's possible to customize the appearance in some other way (with another effects), I would appreciate it.
but line with different styles based on "state" of the concrete point, something like this in pseudocode:
Code: Select all
private void GetPointerStyle(Steema.TeeChart.CustomPointSeries series, Steema.TeeChart.CustomPointSeries.GetPointerStyleEventArgs e)
{
if (someCondition())
{
e.Style = PointerStyles.Triangle;
}
else
{
ApplyMyCustomStyleForPoint(e)
}
}
Hi gs,
In v2009 there is ImagePoint series that would allow you to do something as follows:
In v2 I'm afraid that the only solution is to create your own series as Narcís pointed to you before because PointerStyles is an enum defined into the Steema.TeeChart.Styles namespace.
In v2009 there is ImagePoint series that would allow you to do something as follows:
Code: Select all
Image original;
private void InitializeChart()
{
ImagePoint points1 = new ImagePoint(tChart1.Chart);
points1.FillSampleValues(25);
original = points1.PointImage;
points1.GetImage += new GetImageEvent(points1_GetImage);
}
void points1_GetImage(CustomImagePoint sender, int valueIndex, Image image)
{
if (valueIndex == 10)
{
((ImagePoint)sender).PointImage = Image.FromFile(@"C:\temp\mypointer.jpg");
}
else
{
((ImagePoint)sender).PointImage = original;
}
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |