Resizing points or bubbles
Posted: Wed May 09, 2007 1:28 am
I am trying to accomplish creating a filled in region on a chart by creating either a Points series or Bubble series. My goal is to have all the points drawn to make sure they just touch on the top and bottom of a circle or oval with the adjacent points.
When I use Point series, Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle and make the Pointer.HorizSize = Constant size, it will not look correctly when I zoom in using the charts zoom capabilities. When I zoom in, the circle gets smaller and the space between the circles gets larger.
I was looking at using a Bubble series. It seems to not have this problem with zooming, but I had problems when adding my points. I get my points from 2 or 3 arrays of doubles. All examples working with the Bubble series shows adding points by adding them point by point. I added points by calling the series.Add(double[], double[]) method. I was able to call this method successfully but when it came time to render the chart I got an exception saying index was out of range.
I considered using the TChart.Zoomed event and then try to calculate a horizontal and verticle settings for my Pointer.Style. Not sure how to calculate the HorizSize and VertSize.
Can the bubble series work? If so it appears this is only good for a 2D chart. What to do if I need to accomplish the same thing in a 3D chart?
Any advise on how to solve my problem?
When I use Point series, Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle and make the Pointer.HorizSize = Constant size, it will not look correctly when I zoom in using the charts zoom capabilities. When I zoom in, the circle gets smaller and the space between the circles gets larger.
I was looking at using a Bubble series. It seems to not have this problem with zooming, but I had problems when adding my points. I get my points from 2 or 3 arrays of doubles. All examples working with the Bubble series shows adding points by adding them point by point. I added points by calling the series.Add(double[], double[]) method. I was able to call this method successfully but when it came time to render the chart I got an exception saying index was out of range.
I considered using the TChart.Zoomed event and then try to calculate a horizontal and verticle settings for my Pointer.Style. Not sure how to calculate the HorizSize and VertSize.
Can the bubble series work? If so it appears this is only good for a 2D chart. What to do if I need to accomplish the same thing in a 3D chart?
Any advise on how to solve my problem?