User (Legacy) Posted February 13, 2007 Report Posted February 13, 2007 What is the best way to create a popup window when the user moves over a point in a Chart that stays up. Tooltips normaly disappear after x secounds...
Software FX Posted February 14, 2007 Report Posted February 14, 2007 Are you using the .NET client control or are you generating an image? -- Francisco Padron www.chartfx.com
User (Legacy) Posted February 18, 2007 Author Report Posted February 18, 2007 I am generating a picture. The target environment is a webpart inside Sharepoint 2007. Do you recommend me to use the .Net client control... Any concerns with a approach like this as there will be a lot of users... Regards Magnus Salgo "Software FX" <noreply@softwarefx.com> wrote in message news:pSHB2TIUHHA.1212@webserver3.softwarefx.com... > Are you using the .NET client control or are you generating an image? > > -- > Francisco Padron > www.chartfx.com
Software FX Posted February 19, 2007 Report Posted February 19, 2007 No. You can achieve this with an image. The reason I asked is because the solution for one is quite different than the other. When using images, we allow you to customize the tooltip action by allowing you to define your own script that will run when the tooltip is to be shown. You need to write two JavaScript functions: function popupon (tooltip) { } function popupoff () { } In these functions you can perform your own action for when the tooltip is shown and when it is closed. In order to enable this behavior you need to set ImageSettings.ToolTips = ImageToolTipStyle.WithMouse For more details please look in the API documentation under ImageSettings class, ToolTips property. -- Francisco Padron www.chartfx.com
icegunner Posted November 14, 2007 Report Posted November 14, 2007 Once you create the two javascript functions, do they have access to any chart API? For example, if I wanted to do something in the chart when a hover event occurs (i.e. remove a tooltip for a line but leave it on the point in a line chart) would that be possible? Using image render format. Cheers, Chris
Frank Posted November 14, 2007 Report Posted November 14, 2007 There is no Chart object in the client when you generate an image. You do receive the string to display as a parameter to your popupon function. You can parse that string and determine whether it is for one value (e.g. 98.56) or two values (78.45 - 98.56).
icegunner Posted November 14, 2007 Report Posted November 14, 2007 Well, I did find that the function can also receive an "event" parameter which does give some access to the HTML that creates the chart. In particular the image map. So, in the function I can check to see what kind of shape is used by the map and show or not show the tooltip based on that. This pretty much does what I had mentioned in the example before where I can disable tooltips for a line but leave them for the point in the line chart. Thanks anyway. Cheers, Chris
icegunner Posted September 8, 2008 Report Posted September 8, 2008 No. You can achieve this with an image. The reason I asked is because the solution for one is quite different than the other.[snip] -- Francisco Padronwww.chartfx.com So, how would you accomplish the capabilities of the popupon/popupoff methods using a .NET chart? Cheers, Chris
saswata Posted September 25, 2008 Report Posted September 25, 2008 Hi, I am currently rendering the chart in .NET rendering mode. The javascript methods that were mentioned in the earlier posts for chart images - how could thye be used with a .NET rendering mode. For eg - If some additional infromation needs to be shown fo a datapoint, on the mousehover event. Thanks
Vineet Posted September 30, 2008 Report Posted September 30, 2008 hey, Even i am also looking for this concept. If any 1 of u were able to complete it can u please guide me for how to do it. my emailID:- vnair@visionfinancialmarkets.com / vnair@visionfinancialmarket
Recommended Posts
Archived
This topic is now archived and is closed to further replies.