Jump to content
Software FX Community

GridLine based on Points


SamiAbdallah

Recommended Posts

Hi

I have a chart which has x-axis labels as text not numbers (jan, feb, mar, etc..). I am trying to add customgridline on the x-axis based on the month of march, what is the code that would allow you to do so? also can I add a customgridline based on points, Please help. I am using chartfx 7 for .net (VS 2005.)

Thanks

Sami

Link to comment
Share on other sites

In a categorical X axis, the custom gridlines value goes against the point index, e.g.

chart1.AxisX.CustomGridLines.Add(

new CustomGridLine(3, "Third"));

Will create a custom gridline in the 3rd point in your chart, if the chart was created using months and starting in January then this gridline will coincide with March.

JuanC

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.

×
×
  • Create New...