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

Message ListMessage List     Post MessagePost Message

  Hide some x-axis labels.
Posted by ET on Sep-03-2014 11:35
Hi Peter,

Need some advise on huge datapoint (~500 datapoints) per chart.

Is there a way for me to show x-axis label in line chart selectively (for e.g: show x-axis
datapoint at every 1st, 10th, 20th, etc...) with all datapoint still available in line chart?

Thanks.

  Re: Hide some x-axis labels.
Posted by Peter Kwan on Sep-03-2014 18:08
Hi ET,

ChartDirector are commonly use to create charts with thousands of points.

If your x-axis is configured using Axis.setLabels, you may use Axis.setLabelStep to configure
the label stepping. See the sample code "Multi-Line Chart" for an example.

If your x-axis is configured using auto-scaling (see the sample code "Uneven Data Points"
for an example), ChartDirector should generate suitable amount of labels on the x-axis, just
like it would generate suitable amount of labels on the y-axis.

Hope this can help.

Regards
Peter Kwan