Jump to content
Software FX Community
bperkins24

Hide zero line for axes

Recommended Posts

Hi bperkins24,

The zero line appears when the BreakZero flag is "on". This flag is one of the many flags you can enable or disable by means of the axis style property. Remember the axis style property is a mask property which means all settings represent a bit in the word that you need to turn on or off according to what you want. For this purpose you will need to use the bitwise operators (And, Or, Not, Xor) provided by your development tool.

So for example, if you want to delete the X axis line when the Y values has negative and positive values, you just need to add the following line:

Chart1.AxisY.Style &= ~AxisStyles.BreakZero;

Regards,

RandyJ

Share this post


Link to post
Share on other sites

Thanks for the prompt response.

I'm using the SSRS Chart and I'm not seeing a Style property on AxisX, AxisY or AxisY2. Where exactly can I find this property for the SSRS Chart?

Thanks,

Boyd

Share this post


Link to post
Share on other sites

Hi bperkins24,

The style property belongs to the Axis class. Please refer to the link below which points to the Chart FX for Reporting Services Documentation. You will find the style propery under  Chart ->  ChartFX.ReportingServices -> AxisY Class -> Properties -> Style

http://support.softwarefx.com/SupportDocTree.aspx?Prod=CfxRS&Type=A

This other link points to the Syle property directly:

http://support.softwarefx.com/OnlineDoc/CfxRS/API/Axis_Style.htm

Regards,

RandyJ

Share this post


Link to post
Share on other sites

I can see this property on the class just fine but it doesn't display in the SSRS designer. The property is declared as Browsable(false) so it doesn't display in the property window. Using the designer (because I have no other option in SSRS to set up the chart right?), how do I disable the break zero flag?

Share this post


Link to post
Share on other sites

Hi bperkins24,

I am sorry for the misunderstanding. Unfortunately I believe this would not be possible with the version for Reporting Services. In this version you are limited to whatever is available in the properties window. Since you cannot enter code, I believe this property is not available. However, since the property in question was indeed included in the documentation I'll investigate further to see if there is any work around to overcome this problem.

Regards,

RandyJ

Share this post


Link to post
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.

Loading...

×
×
  • Create New...