ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  how to set x-axis to always show last date point
Posted by Dilip Agarwal on Mar-19-2014 17:35
Hi Peter, when I set X-Axis data and dates are more then 10 then it just skip the date
between and show dates by interval of 2 or 3 as per the number of dates which is okay, but
it also does not show the last date if that is less then the next interval.

For example
dates are 1,2,3,4,5,6,7,8,9,10,11,12 then it shows dates as 1,4,7,10 . But date 12 , which
is last date does not show is there any solution for this issue

Thanks & Regards
Dilip agarwal

  Re: how to set x-axis to always show last date point
Posted by Peter Kwan on Mar-20-2014 01:29
Hi Dilip,

There are several methods:

(a) You may use Axis.addMark to add a label at the last date. For example:

lastDate = myXData(Ubound(myXData))
Call c.xAxis().addMark(lastDate, -1, c.formatValue(lastDate, "{value|mmm dd,
yyyy}").setMarkColors(&Hcccccc, &H000000, &H000000)

(b) You may ask ChartDirector to extend the x-axis to the next label position, just like how
the y-axis is extended so that it always starts and ends at a labelled position:

Call c.xAxis().setRounding(false, true)

(c) Some people would just include the starting and ending dates in the x-axis title, so
people reading the chart can know what is the ending date.

Hope this can help.

Regards
Peter Kwan