User (Legacy) Posted November 3, 2004 Report Share Posted November 3, 2004 Hi, I am trying to show mouseover tooltips in the JPG format. Is that possible in ChartFX for Java? Any suggestions? -arun Link to comment Share on other sites More sharing options...
Software FX Posted November 3, 2004 Report Share Posted November 3, 2004 Hi, yes it is possible using "Image Maps". If you add the following code: chart1.setImgMap(ImgMap.TITLE_TIP); chart1.setTipMask("Value is %v"); It will show the tool tips in Internet Explorer. If you want to support other browsers, then you need to add some javascript. There is a sample provided in the "Misc" folder. Also, there is a section is the documentation about it: Rendering Methods / Image Maps Generation. Regards, GA "Arun" <abhat@azerity.com> wrote in message news:YJ1tpDdwEHA.1120@webserver3.softwarefx.com... > Hi, > > I am trying to show mouseover tooltips in the JPG format. Is that possible > in ChartFX for Java? > > Any suggestions? > > -arun > Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 3, 2004 Author Report Share Posted November 3, 2004 Thanks a lot for the help. That worked well and I saw the examples too! My next problem is that I have more than 1 chart on a page. The html generated for both the charts gives the same name to the MAP tags. Hence the mouseover for the second chart doesn't work. Any suggestions/workarounds for this? Eg: For the first chart: <MAP name="Chart1"> <AREA SHAPE=POLY COORDS="373,182,373,186,404,186,404,182" TITLE="Distis: 7.34"> <AREA SHAPE=POLY COORDS="402,173,406,173,406,184,402,184" TITLE="Distis: 7.34"> .... For the second chart: <MAP name="Chart1"> <AREA SHAPE=POLY COORDS="51,43,51,47,57,47,57,43" TITLE="Custs: 1.59"> <AREA SHAPE=POLY COORDS="55,36,59,36,59,45,55,45" TITLE="Custs: 1.59"> Thanks, Arun "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:LPe3PifwEHA.3492@webserver3.softwarefx.com... > Hi, yes it is possible using "Image Maps". If you add the following code: > > chart1.setImgMap(ImgMap.TITLE_TIP); > chart1.setTipMask("Value is %v"); > > It will show the tool tips in Internet Explorer. If you want to support > other browsers, then you need to add some javascript. There is a sample > provided in the "Misc" folder. Also, there is a section is the > documentation about it: Rendering Methods / Image Maps Generation. > > Regards, > GA > > > "Arun" <abhat@azerity.com> wrote in message > news:YJ1tpDdwEHA.1120@webserver3.softwarefx.com... >> Hi, >> >> I am trying to show mouseover tooltips in the JPG format. Is that >> possible in ChartFX for Java? >> >> Any suggestions? >> >> -arun >> > > Link to comment Share on other sites More sharing options...
Software FX Posted November 4, 2004 Report Share Posted November 4, 2004 You can work around that by setting the map name when you call the getHtmlTag method. This knowledge base article describes the issue and it solution: http://support.softwarefx.com/kb/800/2/008.htm GA Software FX "Arun" <abhat@azerity.com> wrote in message news:8XVC1RgwEHA.1120@webserver3.softwarefx.com... > Thanks a lot for the help. That worked well and I saw the examples too! > > My next problem is that I have more than 1 chart on a page. The html > generated for both the charts gives the same name to the MAP tags. Hence > the mouseover for the second chart doesn't work. > > Any suggestions/workarounds for this? > > Eg: > For the first chart: > > <MAP name="Chart1"> > <AREA SHAPE=POLY COORDS="373,182,373,186,404,186,404,182" TITLE="Distis: > 7.34"> > <AREA SHAPE=POLY COORDS="402,173,406,173,406,184,402,184" TITLE="Distis: > 7.34"> > .... > > For the second chart: > <MAP name="Chart1"> > <AREA SHAPE=POLY COORDS="51,43,51,47,57,47,57,43" TITLE="Custs: 1.59"> > <AREA SHAPE=POLY COORDS="55,36,59,36,59,45,55,45" TITLE="Custs: 1.59"> > > Thanks, > Arun > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > news:LPe3PifwEHA.3492@webserver3.softwarefx.com... >> Hi, yes it is possible using "Image Maps". If you add the following >> code: >> >> chart1.setImgMap(ImgMap.TITLE_TIP); >> chart1.setTipMask("Value is %v"); >> >> It will show the tool tips in Internet Explorer. If you want to support >> other browsers, then you need to add some javascript. There is a sample >> provided in the "Misc" folder. Also, there is a section is the >> documentation about it: Rendering Methods / Image Maps Generation. >> >> Regards, >> GA >> >> >> "Arun" <abhat@azerity.com> wrote in message >> news:YJ1tpDdwEHA.1120@webserver3.softwarefx.com... >>> Hi, >>> >>> I am trying to show mouseover tooltips in the JPG format. Is that >>> possible in ChartFX for Java? >>> >>> Any suggestions? >>> >>> -arun >>> >> >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.