Page 1 of 1

Cant display Right Axis & Zoom animation

Posted: Wed Jul 07, 2010 3:19 am
by 8751509
Greetings,

1) I cannot display a right axis, I have tried setting it visible in TeeChart Editor, I have tried setting it to visible in VS2010 Properies window and I've tried setting it to visible in code ... I can turn on and off the left axis but I cant get a right axis.

Answered- I found if I set the axis to the series I can display it .. i.e. myCandle.VertAxis = VerticalAxis.Right;

How can I make the rigth axis the default axis for all series (like the left axis behaves).

2) I'd like to see how the animated zoom feature works .. however the example is not complete as it assumes you have already declared a variable ..

in Tutorial 11 - animated zooming What is "points1" a declared type of and is it populated with anything ... also is rectangle from system.drawing or is it a steema class ...

3) Can I display bitmaps on the chart at arbitrary locations .. i.e. financial marker images placed at random date and price values

Regards Phil.

Re: Cant display Right Axis & Zoom animation

Posted: Wed Jul 07, 2010 1:40 pm
by narcis
Hi Phil,
2) I'd like to see how the animated zoom feature works .. however the example is not complete as it assumes you have already declared a variable ..

in Tutorial 11 - animated zooming What is "points1" a declared type of and is it populated with anything ... also is rectangle from system.drawing or is it a steema class ...
points1 is a Points series which can declared like this:

Code: Select all

    private Steema.TeeChart.Styles.Points points1;
and created this way:

Code: Select all

    points1 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
You can populate series using FillSampleValues() method for testing purposes.

Where tChart1 is of type Steema.TeeChart.TChart.

Rectangle is an object of type System.Drawing.Rectangle.
3) Can I display bitmaps on the chart at arbitrary locations .. i.e. financial marker images placed at random date and price values
Yes, you can draw images directly on TeeChart's canvas as in the example I posted here.

Re: Cant display Right Axis & Zoom animation

Posted: Thu Jul 08, 2010 6:09 am
by 8751509
Thanks for that ...

Last question on this thread ... Is there a way to set the charts default vertical axis to be the axis.right .... it seems that by default most objects (series, tools etc) expect a left axis and when it is not there things go strange.

regarsd Phil.

Re: Cant display Right Axis & Zoom animation

Posted: Thu Jul 08, 2010 7:53 am
by narcis
Hi Phil,

No, you can set series to have right axis as vertical axis like this:

Code: Select all

      tChart1[0].VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right;
However, tools may expect a vertical or horizontal axis but shouldn't be any problem setting them to right axis. If any specific problem occurs don't hesitate to let us know.