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"> PieChartDataSet =
p2dData =3D new PieChartDataSet("Journal Coverage", =
data,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; labels_e, paints,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> &nb=
sp; &nb=
sp; &nb=
sp; &nb=
sp; p2dProps);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> LegendProperties =
lp =3D new LegendProperties();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
lp.setBorderStroke(null);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
lp.setBorderPaint(null);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
lp.setEdgePadding(1.0f);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> lp.setPlacement( =
LegendAreaProperties.BOTTOM );</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
lp.setNumColumns(1);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> lp.setFont(new =
Font("Arial", Font.PLAIN, 10));</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> PieChart2D p2d =3D =
new PieChart2D(p2dData, lp,</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> &nb=
sp; &nb=
sp; &nb=
sp; new ChartProperties(), 450, 600);</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"> =
p2d.renderWithImageMap();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> ImageMap imageMap =
=3D p2d.getImageMap();</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"> StringBuffer ebuf =
=3D new StringBuffer();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
ebuf.append("<p>\n<img border=3D\"0\" =
src=3D\"bsubs_e.jpg\" " +</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> &nb=
sp; "alt=3D\"Journal coverage =
pie chart\" " +</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> &nb=
sp; =
"useMap=3D\"#chartMap\">\n");</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
ebuf.append("<map =
name=3D\"chartMap\">\n");</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"> Iterator =
iterator=3D imageMap.getIterator();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> int i =3D =
0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
while(iterator.hasNext()) {</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
StringBuffer html =3D new StringBuffer();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
ImageMapArea imageMapArea=3D (ImageMapArea) iterator.next();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
html.append("alt=3D\"" + imageMapArea.getLengendLabel() =
+ "\"");</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
html.append(" href=3D\"" + pages_e[i++] + =
"\"");</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
ebuf.append(imageMapArea.toHTML( html.toString()) + =
"\n");</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> }</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
ebuf.append("</map>\n");</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial"> FileOutputStream =
fos =3D new FileOutputStream("journals/bsubs_e.jpg");</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
JPEGEncoder.encode(p2d, 1.0f, fos);</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
fos.flush();</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> =
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