alzoid Report post Posted August 3, 2010 Is it possible to have the tool tip wrap when it bounds is larger than the fusion chart display area? I have been using the br tag in my text to maually do this but it does not work for viewing the char at different resolutions. How can I auto word wrap the text in the toll tip? Thank you Al Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted August 3, 2010 Hi, Welcome to FusionCharts forum. Please try using "<BR>" as the line-break so that the tooltip get displayed in multi-lines. Ref.- http://www.fusioncharts.com/docs?/TTip_Lines.html Hope this helps. Share this post Link to post Share on other sites
alzoid Report post Posted August 4, 2010 I tried this but mt problem is I ahve a large tool tip and the graph is dynamically sized at the time of generation. I need the tool tip to automatically wrap when it reaches the edge of the graph. When I use the BR tag I have to ener the breaks manually, since my chart is dynamically sized this is not a good solution. I would have to maually put in breaks for the lowest size which would not look as good at the higher sizes. Is there a way to have the tool tip auto wrap? If not is there any other object I could use? Thank you, Al Share this post Link to post Share on other sites
alzoid Report post Posted August 4, 2010 Ok, I looked in teh source code for TollTip.as (I have the developer version) and I see that it should be word wrapping here: //Now, if the tooltip is getting wider than the originally alloted //canvas width, we need to wrap it automatically. if (this.tf._width>this.sWidth){ //Set word wrap to true this.tf.wordWrap = true; //Set width equal to canvas side, after leaving spacing on left & right this.tf._width = this.sWidth - 2*this.xPadding; } But I know that my fusion charts is not using this code for 2 reasons 1) it is not auto wrapping and 2) the {BR} does not work, only does How do I make my fusion charts use this code for Tool tip. I dont see anything in the charts directory that is begin used. Thank you, Al Share this post Link to post Share on other sites
alzoid Report post Posted August 4, 2010 I updated my charts files with files from the newer version. Now {BR} and the word wrap are working but there are still bugs. The tool tip is extending past the canvas for certian tool tips. Sometimes the tool tip sizes itself properly and other times it does not. How can I recompile the Tooltip.as file and make my current chartsd use it? Thank you, Al Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted August 4, 2010 Hi, Could you please send us the sample code that you are using? Share this post Link to post Share on other sites
alzoid Report post Posted August 6, 2010 (edited) Here is some sample code. My app uses javascript to pass in the width since it displayes a different resolutions. When the width is 1123, the second column tool tip extends past the stanges bounds on the right. This is an example, in my dev code, i am also getting instances of tool tips cutting off on the left, and changing xpos as the mouse moves. Also the tool tip might wrap display properly if it is at a different size. For example if this chanrt is sized to 796 the tool tip displays properly. I think the culprit is the rePosition() functrion in ToolTip.as. Im not sure how to set up Fusion Charts developer so I can recompile the tooltip code. EDIT: I had to attach my HTML/XML since the forum did not escape the code.... EDIT 2: I included BOTH HTML and XML in one file testData.xml Edited August 6, 2010 by Guest Share this post Link to post Share on other sites
Sanjukta Report post Posted August 6, 2010 (edited) Hi, We have tested the XML in our lab and had replicated the issue. Could you please try using {BR} as a line-break for the long tool-tips? Please check with the attached modified XML for your reference. Hope this helps. Data.xml Edited August 6, 2010 by Guest Share this post Link to post Share on other sites