Custom labels
Posted: Thu Jan 19, 2006 8:59 am
Hi,
I have a teechart graph where my X-axe represents each inputvalue (datetime) of the input datafile. This means that on my x-axe a specific date (ex: 21/01/2005) can be displayed multiple times when it occures multiple times in the input datafile.
I've used custom labels to achieve this. The .XValues.DataMember contains a uniek identifier (rowid).
Now everything works fine.... except when a big number of labels (3490 labels)is passed. When passing a labelcollection of 3490 labels to the chart, the chart cannot be displayed anymore ( Error :
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.windows.forms.dll
Additional information: Index was outside the bounds of the array.
)
Now actually it's quite understandable that this is a problem, because the labels wouldn't be readable anymore. But is there a way to make sure not all lables are displayed when using custom labels? Setting the Increment property of the X-axe has no effect.
Kind regards,
Erwin
I have a teechart graph where my X-axe represents each inputvalue (datetime) of the input datafile. This means that on my x-axe a specific date (ex: 21/01/2005) can be displayed multiple times when it occures multiple times in the input datafile.
I've used custom labels to achieve this. The .XValues.DataMember contains a uniek identifier (rowid).
Now everything works fine.... except when a big number of labels (3490 labels)is passed. When passing a labelcollection of 3490 labels to the chart, the chart cannot be displayed anymore ( Error :
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.windows.forms.dll
Additional information: Index was outside the bounds of the array.
)
Now actually it's quite understandable that this is a problem, because the labels wouldn't be readable anymore. But is there a way to make sure not all lables are displayed when using custom labels? Setting the Increment property of the X-axe has no effect.
Kind regards,
Erwin