This is a migrated thread and some comments may be shown as answers.

Chart Axis Line issue

3 Answers 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 09 Aug 2013, 02:38 PM
Is there a way to hide the x-axis line but still show the x-axis labels in the Telerik.Reporting.Chart?

For instance, we have situations where we have to do custom code to reverse the Y-axis to make certain information make sense. Our x-axis is at the top instead of the bottom (yaxis of 0 in the screen shot attached) so we get an odd occurrences where it throws off the set steps (y-axis steps are set to 5 but the intervals are in 4) and the x-axis is drawn on top of the series (shown in screen shot).
I found the option to hide the xaxis but as expected it also hides all of the ticks and labels along with the xaxis line which is not an acceptable solution. In the screenshot attached both major/minorGridLines for the Yaxis are currently off. The only line being shown is the X-Axis.

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 14 Aug 2013, 01:57 PM
Hello Keith,

If you hide the X axis, all related items to it will be hidden. What we can suggest you is to set the Chart.PlotArea.XAxis.Appearance.Color to Transparent which will cause the X axis to be hidden, but will leave the labels.

The same approach can be applied to the newly introduced Graph item, by setting the axis' Style.LineColor to Transparent. Notice the Chart item is obsolete, so we recommend switching to the Graph item, which provides greater design time support and flexibility in using expressions and manipulating data.

Let us know if you have any further questions.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Keith
Top achievements
Rank 1
answered on 14 Aug 2013, 02:04 PM
How much effort would it take to upgrade the chart item to the graph item? Are there any major differences between the way the chart and graph work that would break anything? Time is money etc etc and usually upgrades like this tend to wreak havoc on code (like the skin changes between versions on custom skins).
0
Stef
Telerik team
answered on 19 Aug 2013, 02:35 PM
Hello Keith,

Basically the Graph item supersedes the Chart item, and our aim is to cover the previous charting features in the new item and provide additional functionality as are the expressions, conditional formatting on data point level and the actions. If you need more details about how it works, please go through the help articles in the Graph section in our online help:

If upgrading existing reports is not an option at that time, we recommend developing any new reports with the Graph item. The unified work with different chart types, the greater design time and expression support are supposed to help you create charts easier.

If you have further questions about the Graph item possibilities in different scenarios, feel free to contact us here or using our support ticketing system.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Keith
Top achievements
Rank 1
Answers by
Stef
Telerik team
Keith
Top achievements
Rank 1
Share this question
or