Jump to content
Software FX Community

Popup tooltips


User (Legacy)

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 8 months later...

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 9 months later...
  • 3 weeks later...

 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 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...