Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Date label rendering with alternate pattern on x-axis in line chart series

$
0
0
Hi Deepak,

You can render the date string by setting a date format:

Please note that rendering a single label on multiple lines is not possible at them moment. If the labels overlap each other different labels can rendered on different lines so that they don't overlap however a single label is always on one line.

You can tell your axis to skip every other label like this:
axis.setDateTimeFormat(new SimpleDateFormat("dd MMM hh:mm aaa"));

To skip more labels increase the argument number.
axis.setLabelInterval(2);

Also you can use the label fit mode strategies if the labels become too cramped:
weekHorizontalAxis.setLabelFitMode(AxisLabelFitMode.MULTI_LINE);
The fit modes can be multi-line, rotate and none.

Please write again if you need further assistance.


Regards,
Victor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>