setting arrow pointer color for marks
Posted: Wed Nov 09, 2005 7:18 pm
We initialize our TChart instance setting the 3D option to false as below:
this.tChart_SblPreview.Aspect.View3D = false;
Then we create a series of type Line and try to set its properties. Among them we try to set the color of the arrow pointer for the marks using one of the following code lines:
line.Pointer.Color = lSettings.MarkerColor;
line.Marks.Arrow.Color = lSettings.MarkerColor;
line.Pointer.Brush.Color = lSettings.MarkerColor;
However none of them worked and the pointer color is always the same as the line color, but we want them to have different colors. THis is possible if the 3D option above is set to true, however it would lead to another undesired situation. So is it possible to have arrows pointers and a line with different colors using code (not the edit window)?
Another question: Is it possible to have arrow pointers with different sizes (width and height) in the same series?
Thanks in advance,
Marconi
this.tChart_SblPreview.Aspect.View3D = false;
Then we create a series of type Line and try to set its properties. Among them we try to set the color of the arrow pointer for the marks using one of the following code lines:
line.Pointer.Color = lSettings.MarkerColor;
line.Marks.Arrow.Color = lSettings.MarkerColor;
line.Pointer.Brush.Color = lSettings.MarkerColor;
However none of them worked and the pointer color is always the same as the line color, but we want them to have different colors. THis is possible if the 3D option above is set to true, however it would lead to another undesired situation. So is it possible to have arrows pointers and a line with different colors using code (not the edit window)?
Another question: Is it possible to have arrow pointers with different sizes (width and height) in the same series?
Thanks in advance,
Marconi