Jump to content
Software FX Community

Display Text in Bar for Bar Chart


Ankur
 Share

Recommended Posts

Hi,

I want to display text in my bar Chart. Ho can I go ahead with that . Secondly I want to make invisible the one axis of the two given axis. For eg. we have to Axes for Y but I want do make the second one invisible. Such as Only one Y Axis appears but not the second one. For reference to both of the see the picture attached.

 

Link to comment
Share on other sites

Hi Ankur

Regarding your first question, you can use AnnotationText objects.  All information related to this object is available in Chart FX Samples & Resource Center, that is automatically added when you Install Chart FX 7 on your machine.  Please check the following code, it shows you how to add an AnnotationText:

SoftwareFX.ChartFX.Annotation.AnnotationX annotx = new SoftwareFX.ChartFX.Annotation.AnnotationX();

chart1.Extensions.Add(annotx);

AnnotationText text = new AnnotationText();

annotx.List.Add(text);

text.TextColor = Color.Blue;

text.Text = "Sample Text";

text.Height = 50;

text.Width = 50;

text.Top = 40;

text.Left = 40;

text.Refresh();

Now, regarding your second question, if you want to make the axis invisible, you can use the following code:

AxisY newAxis = Chart1.AxesY[1];   -- Index 0 = the first Y axis and index 1 is the 2nd  Y axis

newAxis.Visible = false;

Carlos Chaves

Link to comment
Share on other sites

 Thanks for the quick reply, The solution for first problem works good. But for second, by Axis I mean the grey color border which is appearing with the chart I want the right border to be invisible

 

file:///C:/DOCUME%7E1/ankohli/LOCALS%7E1/Temp/msohtml1/01/clip_image002.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...