help

"Caouette, Diane-Hélène" <[email protected]> Tue, 22 Feb 2005 16:58:34 -0500
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <[email protected]>
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C51929.916AF285
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable




I am trying to find a way of clicking on subject categories underneath =
a pie
chart in order to=20

get to the subcategories indicated by the colors of the pie chart.

http://source.cisti-icist.nrc-cnrc.gc.ca/cs/journals/subjects_e.html

At the moment, one has to click on the different colors of the pie =
chart in
order to go to the subcategories.

If someone is colour blind, it would help to use the text underneath =
the pie
chart in order to go to the subcategories.

How do I do that?

The part of the code for the english pie chart:

PieChart2DProperties p2dProps =3D new PieChart2DProperties();
    PieChartDataSet p2dData =3D new PieChartDataSet("Journal Coverage", =
data,
                                                  labels_e, paints,
                                                  p2dProps);
    LegendProperties lp =3D new LegendProperties();
    lp.setBorderStroke(null);
    lp.setBorderPaint(null);
    lp.setEdgePadding(1.0f);
    lp.setPlacement( LegendAreaProperties.BOTTOM );
    lp.setNumColumns(1);
    lp.setFont(new Font("Arial", Font.PLAIN, 10));
    PieChart2D p2d =3D new PieChart2D(p2dData, lp,
                                    new ChartProperties(), 450, 600);

    p2d.renderWithImageMap();
    ImageMap imageMap =3D p2d.getImageMap();

    StringBuffer ebuf =3D new StringBuffer();
    ebuf.append("<p>\n<img border=3D\"0\" src=3D\"bsubs_e.jpg\" " +
                "alt=3D\"Journal coverage pie chart\" " +
                "useMap=3D\"#chartMap\">\n");
    ebuf.append("<map name=3D\"chartMap\">\n");

    Iterator iterator=3D imageMap.getIterator();
    int i =3D 0;
    while(iterator.hasNext()) {
      StringBuffer html =3D new StringBuffer();
      ImageMapArea imageMapArea=3D (ImageMapArea) iterator.next();
      html.append("alt=3D\"" + imageMapArea.getLengendLabel() + "\"");
      html.append(" href=3D\"" + pages_e[i++] + "\"");
      ebuf.append(imageMapArea.toHTML( html.toString()) + "\n");
    }
    ebuf.append("</map>\n");


    FileOutputStream fos =3D new =
FileOutputStream("journals/bsubs_e.jpg");
    JPEGEncoder.encode(p2d, 1.0f, fos);
    fos.flush();
    fos.close();





Regards,


Diane-Helene

_______________________________________________________

Diane-H=E9l=E8ne Caouette
613-993-9123
[email protected]=20
Electronic Document Delivery Technical Support
CISTI
National Research Council, Building M-55
1200 Montreal Road
Ottawa, ON K1A 0S2
Government of Canada

613-993-9123
[email protected]=20
Support technique =E0 la fourniture =E9lectronique de documents
ICIST
Conseil National de Recherches Canada
1200 rue Montr=E9al
Ottawa, ON K1A 0S2
Gouvernement du Canada
_______________________________________________________


------_=_NextPart_001_01C51929.916AF285
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2657.73">
<TITLE>help</TITLE>
</HEAD>
<BODY>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am trying to find a way of clicking =
on subject categories underneath a pie chart in order to </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">get to the subcategories indicated by =
the colors of the pie chart.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"><A =
HREF=3D"http://source.cisti-icist.nrc-cnrc.gc.ca/cs/journals/subjects_e.=
html" =
TARGET=3D"_blank">http://source.cisti-icist.nrc-cnrc.gc.ca/cs/journals/s=
ubjects_e.html</A></FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">At the moment, one has to click on the =
different colors of the pie chart in order to go to the =
subcategories.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">If someone is colour blind, it would =
help to use the text underneath the pie chart in order to go to the =
subcategories.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">How do I do that?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The part of the code for the english =
pie chart:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">PieChart2DProperties p2dProps =3D new =
PieChart2DProperties();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; PieChartDataSet =
p2dData =3D new PieChartDataSet(&quot;Journal Coverage&quot;, =
data,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp; labels_e, paints,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp; p2dProps);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; LegendProperties =
lp =3D new LegendProperties();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
lp.setBorderStroke(null);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
lp.setBorderPaint(null);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
lp.setEdgePadding(1.0f);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; lp.setPlacement( =
LegendAreaProperties.BOTTOM );</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
lp.setNumColumns(1);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; lp.setFont(new =
Font(&quot;Arial&quot;, Font.PLAIN, 10));</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; PieChart2D p2d =3D =
new PieChart2D(p2dData, lp,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; new ChartProperties(), 450, 600);</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
p2d.renderWithImageMap();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; ImageMap imageMap =
=3D p2d.getImageMap();</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; StringBuffer ebuf =
=3D new StringBuffer();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
ebuf.append(&quot;&lt;p&gt;\n&lt;img border=3D\&quot;0\&quot; =
src=3D\&quot;bsubs_e.jpg\&quot; &quot; +</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;alt=3D\&quot;Journal coverage =
pie chart\&quot; &quot; +</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;useMap=3D\&quot;#chartMap\&quot;&gt;\n&quot;);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
ebuf.append(&quot;&lt;map =
name=3D\&quot;chartMap\&quot;&gt;\n&quot;);</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; Iterator =
iterator=3D imageMap.getIterator();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; int i =3D =
0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
while(iterator.hasNext()) {</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
StringBuffer html =3D new StringBuffer();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ImageMapArea imageMapArea=3D (ImageMapArea) iterator.next();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
html.append(&quot;alt=3D\&quot;&quot; + imageMapArea.getLengendLabel() =
+ &quot;\&quot;&quot;);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
html.append(&quot; href=3D\&quot;&quot; + pages_e[i++] + =
&quot;\&quot;&quot;);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ebuf.append(imageMapArea.toHTML( html.toString()) + =
&quot;\n&quot;);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; }</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
ebuf.append(&quot;&lt;/map&gt;\n&quot;);</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; FileOutputStream =
fos =3D new FileOutputStream(&quot;journals/bsubs_e.jpg&quot;);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
JPEGEncoder.encode(p2d, 1.0f, fos);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
fos.flush();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; =
fos.close();</FONT>
</P>
<BR>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D1 FACE=3D"Arial">Regards,</FONT>
</P>
<BR>

<P><FONT COLOR=3D"#800080" SIZE=3D5 FACE=3D"Monotype =
Corsiva">Diane-Helene</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D1 =
FACE=3D"Arial">_______________________________________________________</=
FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk =
BT">Diane-H=E9l=E8ne Caouette</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Arial">613-993-9123</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 =
FACE=3D"Arial">[email protected]</FONT>=20
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">Electronic =
Document Delivery Technical Support</FONT>
<BR><I><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk =
BT">CISTI</FONT></I>
<BR><I><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">National =
Research Council</FONT></I><FONT COLOR=3D"#000000" SIZE=3D1 =
FACE=3D"Futura Bk BT">, Building M-55</FONT><I></I>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">1200 =
Montreal Road</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">Ottawa, ON =
K1A 0S2</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Arial">Government of =
Canada</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Arial">613-993-9123</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 =
FACE=3D"Arial">[email protected]</FONT>=20
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">Support =
technique =E0 la fourniture</FONT> <FONT COLOR=3D"#000000" SIZE=3D1 =
FACE=3D"Arial">=E9lectronique de documents</FONT>
<BR><I><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk =
BT">ICIST</FONT></I>
<BR><I><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">Conseil =
National de Recherches Canada</FONT></I>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">1200 rue =
Montr=E9al</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Futura Bk BT">Ottawa, ON =
K1A 0S2</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 FACE=3D"Arial">Gouvernement du =
Canada</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D1 =
FACE=3D"Arial">_______________________________________________________</=
FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C51929.916AF285--


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click