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

Limit XAxis

1 Answer 38 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
JAVIER BABUGLIA
Top achievements
Rank 1
JAVIER BABUGLIA asked on 28 Jun 2018, 08:22 AM
Hi, I'm not sure how to limit my XAxes in my chart (in my case the X axes are days). The data is linked to a database which updates every day and I need to limit the scope of the data which is being displayed. For example only display the info of  the last 15 days.

How can I achieve that?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Jul 2018, 03:58 PM
Hi Javier,

The MinDateValue can let you do that: https://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/server-side-programming/axes-configuration#attribute-properties-in-the-axis-tag.

Of course, you can also simply truncate the data before you pass it to the chart, as this can also reduce the length of data that needs to be serialized and data points that will be rendered.


Regards,
Marin Bratanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Chart (HTML5)
Asked by
JAVIER BABUGLIA
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or