Problems displaying information on the chart.

1 Answer 101 Views
ChartView PivotGrid and PivotFieldList
SANDRO
Top achievements
Rank 2
Iron
Iron
Iron
SANDRO asked on 11 Nov 2022, 10:33 PM

Hello good day.

I am making an application that shows a graph, I use the chartview control, but when there is too much data on the X axis, the information is not distinguished.


I have read that it can be fixed by using MajorTickInterval on the horizontalAxis, I use this lines:

horizontalAxis.LabelFitMode = AxisLabelFitMode.Rotate;
horizontalAxis.MajorTickInterval = 7;

The clearest information is already displayed, but when displaying the information some data should appear in the graph but they are not shown because they are not in the interval.

Is there a solution?

Another question,

Can you remove or hide from the graph the values that have zero or null on the X axis?

Awaiting your comments.
Thank you very much.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Nov 2022, 12:25 PM

Hello, Sandro,

According to the provided screenshot, it seems that you have a lot of labels on the horizontal axis most of which refer to null values.

I would recommend you to consider using a RadSparkline with also supports null values. However, the EmptyPointBehavior property controls what happens with null points and the DoNotShow option skips the null point from painting on the chart: 

https://docs.telerik.com/devtools/winforms/controls/sparkline/features/null-values 

I hope this information helps. If you need any further assistance please don't hesitate to contact me.  

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

SANDRO
Top achievements
Rank 2
Iron
Iron
Iron
commented on 14 Nov 2022, 07:02 PM

Hello again.

Thank you for recommending me to use the RadSparkline, but that control does not cover the requirements to display the information.

I understand that the radChartView control does not have the functionality to hide nulls or zeros, right?

If so, then I understand that I will not be supported?
Dess | Tech Support Engineer, Principal
Telerik team
commented on 17 Nov 2022, 09:26 AM

Hi, Sandro,

I understand that RadSparkline doesn't fit your scenario.

If you want to hide the null values from RadChartView, it is necessary to remove these data points and they wouldn't be present in the chart view at all.

Tags
ChartView PivotGrid and PivotFieldList
Asked by
SANDRO
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or