We are using charts to list ranked products in a dashboard like view with3 charts and a grid in a table layout. The product labels can be fairly long and are by necessity getting truncated by the chart graphics. I am interested in how others have approached the problem. Is it possible to force a wrap of the column lables at a certain point? What about tooltips for the labels themselves? I have added the data as a tool tip to the series in question but the tooltip is clipped by the chart in the next cell to the right. I have tried some z-index manipulation to fix it but short of absolute positioning it doesn't work. Absolute positioning causes other unacceptable problems in this case. Any thoughts on the above solutions or alternative approaches?
TIA
it is possible to trick the labels into displaying tooltips themselves, using the FillSceneGraph event or a custom layer. as for the tooltip z-index issues, i have seen (and fixed) many unique cases where this gets messed up. try using Firebug or the IE Developer Toolbar to toggle the style.position of the various elements of the chart (e.g. <TABLE id="UltraChart1_table">) from absolute to relative, or vice versa, or clear the value of style.position.
feel free to submit a support issue and attach a sample project if you want help finding a solution. or post whatever sample code you have here and i may be able to look at it.
I am using tooltips to show details of items in a Gannt Chart (UltraChart)
The text can be quite long.
Is there a way (other than writing my own 'word wrap' code) to have ultrachart wrap the text displayed?
no ... the only way is to embed line breaks in the tooltip string, using the FormatString itself or IRenderLabel.
Yes,If we try to use \n(new line character),then mostly it will help.
something like this.
chart.Tooltips.FormatString =
"<SERIES_LABEL>\n<ITEM_LABEL>\n<PERCENT_VALUE:#0>%(<DATA_VALUE:00.00>)"
;