Page 1 of 2
Markers
Posted: Wed Sep 20, 2006 4:16 pm
by 9642161
Is it possible to display just the marker on a fastline and not any value etc
Posted: Thu Sep 21, 2006 8:21 am
by narcis
Hi histry,
You can try doing something like this:
Code: Select all
fastLine1.Marks.Visible = true;
fastLine1.Marks.Arrow.Visible = false;
fastLine1.Color = Color.Transparent;
If that's not what you are looking for, could you please be more specific on what you need?
Markers
Posted: Thu Sep 21, 2006 12:08 pm
by 9642161
What I need to do is display the fastline with markers. I dont want to see any labels like the value, percent etc.
Posted: Thu Sep 21, 2006 2:24 pm
by narcis
Hi histry,
What do you exactly mean with "markers"?
Thanks in advance.
Markers
Posted: Thu Sep 21, 2006 2:27 pm
by 9642161
I would like to see the symbol (square) but not the label
Posted: Thu Sep 21, 2006 2:47 pm
by narcis
Hi histry,
You may mean the series pointer. FastLine series, for its nature, doesn't have pointers. To use them you should use Line series:
Code: Select all
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1);
line1.FillSampleValues();
line1.Pointer.Visible = true;
Markers
Posted: Thu Sep 21, 2006 2:56 pm
by 9642161
I agree that is what I am looking for. The issue I have is that I have very large data arrays and need the performance of the fastline. Is there any plans on supporing points for fastlines in future releases.
Posted: Thu Sep 21, 2006 3:00 pm
by narcis
Hi histry,
I don't think so as for FastLine to be as fast as possible we need to use the minimum elements possible.
For some hints on how to optimize your chart performance you can read
this article and have a look at the
All Features\Welcome !\Speed examples in the features demo, available at TeeChart's program group.
Markers
Posted: Thu Sep 21, 2006 3:05 pm
by 9642161
Would be nice if you could display a couple of points on a fastline for printing purposes. I understand your concern but you could implement it the same a markers where you can set a property for the number of markers to display
Posted: Fri Sep 22, 2006 8:48 am
by narcis
Hi histry,
You can already custom draw the marks on the chart's canvas doing something like this:
Code: Select all
private void DrawSeriesPointers()
{
Rectangle r = new Rectangle();
for (int i = 0; i < tChart1[0].Count; i++)
{
r.Width = 5;
r.Height = r.Width;
r.X = tChart1[0].CalcXPos(i) - (r.Width / 2);
r.Y = tChart1[0].CalcYPos(i) - (r.Height / 2);
tChart1.Graphics3D.Brush.Visible = true;
tChart1.Graphics3D.Rectangle(r);
}
}
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
DrawSeriesPointers();
}
Re: Markers
Posted: Fri Sep 22, 2006 5:45 pm
by Marjan
9642161 wrote:Would be nice if you could display a couple of points on a fastline for printing purposes. I understand your concern but you could implement it the same a markers where you can set a property for the number of markers to display
If you only need to display couple of points, then the best solution is to add another "regular" point series to chart, populate it with specific points from fastline series and then format it according to your needs. This way you'll still be able to benefit speed from fastline series.
Markers
Posted: Fri Sep 22, 2006 6:15 pm
by 9642161
These are all good work arrounds. I guess the question is for version 3 is there any consideration on adding points to the fastline series where you can specify that you only want the points displayed every so many data points. Similar to the way that markers work.
When printing the charts with something other than color printers it is important to be able to associate a symbol to a series.
Thanks
Posted: Mon Sep 25, 2006 7:58 am
by narcis
Hi histry,
I don't think it's going to be implemented. However, using line series with visible pointers or point series you can also choose which pointers you want to display using the GetPointerStyle as shown on
this message.
Markers
Posted: Mon Sep 25, 2006 2:26 pm
by 9642161
I need the performance of your fastline as I am returning 10's of thousands of points.
Posted: Tue Sep 26, 2006 1:03 pm
by Marjan
I think any additional coding (including filtering of points before displaying) would most likely create an overhead i.e. the fastline series would become slower.