Jump to content
Software FX Community

tooltip on gauge is not working


Recommended Posts

I would like to know why the tooltip on radial gauge is not working. My code is like this:

RadialGauge radialGauge1= new RadialGauge();

radialGauge1.importGauge(com.softwarefx.chartfx.gauge.FileFormat.XML, sc.getRealPath("/WEB-INF/gauge.xml"));


radialGauge1.getMainScale().getIndicators().getItem(0).setToolTip("test tooltip");


Thanks in advance.

Link to comment
Share on other sites

  • 1 month later...


In Chart FX Gauges for Java you can set tooltips for each Indicator and for the rest of the Gauge.

Here is an example:

// Setting the Main Indicator:com.softwarefx.chartfx.gauge.Filler filler1 =(com.softwarefx.chartfx.gauge.Filler) gauge.getMainIndicator();filler1.setValue("75");filler1.setToolTip("The Value is %v");

// Setting tooltip for Gaugegauge.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.

If you are not able to see the tooltip, please note that you may need to modify 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 may have been set to true by mistake.


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...