-1

I'm using Microsoft Chart in order to draw some stepline charts.

Should I use StepLine directly or should i make my own using FastLine in order to be faster ?

In other words, do anyone know if the stepline is built on the Line or on the FastLine type.

I've got around several thousands points to draw.

StepLine : http://msdn.microsoft.com/en-us/library/dd456618.aspx

FastLine : http://msdn.microsoft.com/en-us/library/dd489249.aspx

It's seems to have good performance with StepLine too.

ykatchou
  • 3,667
  • 1
  • 22
  • 27

1 Answers1

1

I am having the same problem, I have 670,000 points.

I tried stepline with 670,000 points, in order to draw the same graph, I had to use 670,000*2 points for fast line.

And the result is, in release mode, I tested 5 times (the time varies a lot, i guess it's cache) fastline costs around 70% of the time spent by stepline

aihenry2980
  • 329
  • 2
  • 7
  • 18
  • the best way is definitevely to sample your data depending on your zoom. – ykatchou Feb 04 '13 at 15:19
  • Yes, but the amount of showed points should be indexed on the zoom. – ykatchou Feb 05 '13 at 08:26
  • @ykatchou Here is another problem, if I call zoom right after addXY all the points, it wouldn't work. I think it's because another thread is dealing with the points. I don't know when should I call zoom. – aihenry2980 Feb 05 '13 at 08:37