Jump to content
Software FX Community

Inverted arrow head


User (Legacy)

Recommended Posts

The following code will give you an image very similar to what you are

looking for.

chart1.Gallery = Gallery.Bar;

chart1.OpenData(COD.Values,1,3);

chart1.Value[0,0] = 10;

chart1.Value[0,1] = 12;

chart1.Value[0,2] = 8;

chart1.CloseData(COD.Values);

SoftwareFX.ChartFX.Annotation.AnnotationX annX = new

SoftwareFX.ChartFX.Annotation.AnnotationX();

SoftwareFX.ChartFX.Annotation.AnnotationArrow arrow = new

SoftwareFX.ChartFX.Annotation.AnnotationArrow();

annX.List.Add(arrow);

chart1.Extensions.Add(annX);

// Configure the arrow object

arrow.Color = System.Drawing.Color.Salmon;

arrow.Height = 10;

arrow.Width = 0;

arrow.Border.Color = System.Drawing.Color.Red;

arrow.Attach(1,10);

Note that by setting the arrow width to 0 we get a vertical arrow,

unfortunately the arrow attaches its center to the specified position so it

is not easy to get the arrow on top of the bar. If you absolutely need the

arrow not to overlap the bar you may need to create a polygon.

--

Regards,

JC

Software FX Support

"Deepika" <deepika.murthy@wipro.com> wrote in message

news:7vy1ATaDEHA.4068@webserver3.softwarefx.com...

> Hi,

>

> How can i get inverted arrow head ?

> Is there any property of AnnotationArrow to display on arrow head ?

> Please see attached sample figure.

>

> regards,

> Deepika.

>

>

>

>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...