User (Legacy) Posted November 21, 2004 Report Share Posted November 21, 2004 I've set the URL for an annotation object to run a javascript method to show some important information about the object using Chart.ShowBalloon. The URL looks like "javascript:myFunction(series, infoIndex)", and gets triggered on a double click of the object. I track the associated text details for the annotation object in a global javascript array, and key off of the values passed to the function. There are multiple lines - some "header" text, then a list of name/value pair type of information. The multiple lines are being handled OK by the balloon (I build up the string in javascript to put in real line feeds). However, sometimes when there is a little bit longer text, it is getting cut off after a certain point. I counted up the characters in a couple cases, and it looks like its around 126 characters (not including new lines), after which the text is cut off. Could this limit be increased? 126 characters probably isn't too bad for a single line, but is rather limiting for the total across multiple lines. Could the limit be raised to perhaps 1024 characters or more overall? In addition, some "feature requests" that aren't quite as easy (since you'd have to add new methods or properties), but would be nice additions: * Make it possible to format the font used for ShowBalloon (at a minimum, being able to control the alignment, bold/not bold and the font size) * Support setting tooltip text per annotation object (that can deal properly with new lines - \n or \r\n / vbNewLine) Thanks! -Daniel Link to comment Share on other sites More sharing options...
User (Legacy) Posted December 4, 2004 Author Report Share Posted December 4, 2004 OK, I had suggested maybe having 1024 character limit overall, but now have run into a case where I'd need even more than that :-( It would be even better if there were no un-natural limit. I've attached 2 screen shots. One thing that's interesting is that it seems to format the size of the balloon correctly, even for lots and lots of text - it just doesn't render all the text :-( -Daniel "Daniel Bowen" <dbowen@take-this-out-timertrac-and-this-too.com> wrote in message news:f24FRQ5zEHA.1120@webserver3.softwarefx.com... > I've set the URL for an annotation object to run a javascript method to > show > some important information about the object using Chart.ShowBalloon. The > URL looks like "javascript:myFunction(series, infoIndex)", and gets > triggered on a double click of the object. I track the associated text > details for the annotation object in a global javascript array, and key > off > of the values passed to the function. > > There are multiple lines - some "header" text, then a list of name/value > pair type of information. The multiple lines are being handled OK by the > balloon (I build up the string in javascript to put in real line feeds). > However, sometimes when there is a little bit longer text, it is getting > cut > off after a certain point. I counted up the characters in a couple cases, > and it looks like its around 126 characters (not including new lines), > after > which the text is cut off. Could this limit be increased? 126 characters > probably isn't too bad for a single line, but is rather limiting for the > total across multiple lines. Could the limit be raised to perhaps 1024 > characters or more overall? > > In addition, some "feature requests" that aren't quite as easy (since > you'd > have to add new methods or properties), but would be nice additions: > * Make it possible to format the font used for ShowBalloon (at a minimum, > being able to control the alignment, bold/not bold and the font size) > * Support setting tooltip text per annotation object (that can deal > properly > with new lines - \n or \r\n / vbNewLine) > > > Thanks! > -Daniel > > Link to comment Share on other sites More sharing options...
Software FX Posted December 6, 2004 Report Share Posted December 6, 2004 Instead of ShowBalloon, you need to create an annotation balloon object. There is no limit on this one. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted December 14, 2004 Author Report Share Posted December 14, 2004 "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:BWMMnG72EHA.3492@webserver3.softwarefx.com... > Instead of ShowBalloon, you need to create an annotation balloon object. > There is no limit on this one. I have it so when they double click on one of the "markers" on the chart (an annotation object), I do ShowBalloon to show more details about that marker. When they click somewhere else, or on the balloon, the balloon goes away. If I did a balloon annotation object instead of ShowBalloon, how would I go about making the balloon object go away in a similar manner to the ShowBalloon method? I'd also have to reposition the balloon for each marker, or just have a balloon for each marker that is hidden until shown (although that's be more wasteful - there could possibly be hundreds). The ShowBalloon method is also nice, because its a popup window that won't get clipped by the extent of the chart child window (it will hang over the edge). ShowBalloon isn't even exactly what I'd like to have - what I'd really like to have is a tooltip per annotation object, so that the user wouldn't even have to click on the annotation object at all. I have it working so that when the output is PNG or JPEG, I use the image map and some other javascript magic to get a tooltip for the area of what had been the annotation object (setting the "title" dynamically in javascript). Another option I had thought of was positioning a floating DIV section instead of ShowBalloon - but the problem is that the ChartFX chart is a windowed control, and a floating DIV is windowless, so the floating DIV will always be behind the chart. I could also open a new window I suppose, but what I'd really like is just a simple way to add a tooltip per-annotation object, and failing that, a more robust ShowBalloon :-) Thanks! -Daniel Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.