Jump to content
Software FX Community



Recommended Posts

In Chart FX Gauges for Java you can set tooltips for each Indicator and for the rest of the Gauge.  You can not set tooltips for any other piece, and I there is no way to get the coordinates other than by getting the image map by calling rendertostream.

Here is an example:

// Setting the Main Indicator:

com.softwarefx.chartfx.gauge.Filler filler1 =(com.softwarefx.chartfx.gauge.Filler) gauge.getMainIndicator();


filler1.setToolTip("The Value is %v");

// Setting tooltip for Gauge

gauge.setToolTip("This is the Gauge..."); 

This code will set a tooltip "The value is 75" in the Indicator, and "This is the Gauge" for the rest of the Gauge image. 

However, this seems to be broken in the latest build, and development is looking into it right now. I'll let you know when there is a fix available.



Link to comment
Share on other sites

The good news is that this is not a bug, it is a configuration setting.  Open the chartfx.gauge.config in your CfxGauges10\config, and change the setting UseToStringForToolTip to false.  This should be the default but it was ship with true by mistake.  We will fix it in installers and service packs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...