Hello,
I am currently working with NetAdvantage for WinForms 8.1, and I have a question about WinChart labels.
I have a simple LineChart with many points, thus I want that not all the labels are displayed on the X-Axis, so that the labels are readable (for example 1 out of 7 is visible). But I would like to display all the labels in the tooltips that appear when you point with the mouse on an item of the graph.
Since both tooltips and Axis-labels use the same <ITEM_LABEL> for diplay, I cannot find out how to achieve this.
Any idea ?
Thank you,
Julien
okay, so by setting the Tooltips.FormatString to <ITEM_LABEL>, you should already have the desired behavior for tooltips.
to limit the number of labels are printed on the x-axis, try the following.
- set axis.x.labels.layout.behavior = auto. this will prevent labels from overlapping automatically.
or,
- set Axis.X.TickmarkStyle to DataInterval and TickmarkInterval to something like 5 to print only every 5th label.
Thank you for your answer. Indeed I would like to use the <ITEM_LABEL> for the tooltip, as I do for the x-axis labels. But what I want is that not all the x-axis labels are displayed, because there would be too much information on the x-axis. For the missing x-axis labels, the tooltip should then help the reader.
I hope I explained my point well...
i think the default value for Tooltips.FormatString is something like <DATA_VALUE:0>. if you set it to <ITEM_LABEL>, it should show the labels over each point, same as the x-axis labels.
Isn't there a solution for that ?