ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Problem with ImageMapHandler
Posted by herv on May-06-2009 22:11
Attachments:
Hello,

Some of the coordinates in the buffer generate with the method getHTMLImageChart are wrong when my dataset is not ordered.

I want to chart a trend, and my dataset is not ordered. I have value from 1 to 80, then 58. If you look at the last point, you will see that the coordinates are wrong.

Attached is the buffer generated.

Do you have any idea about this issue ?

Thanks
Herv
imagemaphandler.txt
<area shape="poly" coords="767,241,655,242,655,252,767,251" title='58;-0.6024;DataSet_1'>
<area shape="poly" coords="884,240,879,240,767,241,767,251,879,250,884,250" title='80;-0.5984;DataSet_1'>
<area shape="poly" coords="864,241,869,240,874,240,874,250,869,250,864,251" title='79;-0.5988;DataSet_1'>
<area shape="poly" coords="853,242,859,242,864,241,864,251,859,252,853,252" title='78;-0.6032;DataSet_1'>
<area shape="poly" coords="843,241,848,242,853,242,853,252,848,252,843,251" title='77;-0.6043;DataSet_1'>
<area shape="poly" coords="833,240,838,241,843,241,843,251,838,251,833,250" title='76;-0.6013;DataSet_1'>
<area shape="poly" coords="823,241,828,240,833,240,833,250,828,250,823,251" title='75;-0.5987;DataSet_1'>
<area shape="poly" coords="813,242,818,242,823,241,823,251,818,252,813,252" title='74;-0.6032;DataSet_1'>
<area shape="poly" coords="803,242,808,242,813,242,813,252,808,252,803,252" title='73;-0.6044;DataSet_1'>
<area shape="poly" coords="792,241,798,242,803,242,803,252,798,252,792,251" title='72;-0.6023;DataSet_1'>
<area shape="poly" coords="782,241,787,240,792,241,792,251,787,250,782,251" title='71;-0.5974;DataSet_1'>
<area shape="poly" coords="772,242,777,242,782,241,782,251,777,252,772,252" title='70;-0.6025;DataSet_1'>
<area shape="poly" coords="762,240,767,242,772,242,772,252,767,252,762,250" title='69;-0.604;DataSet_1'>
<area shape="poly" coords="752,240,757,239,762,240,762,250,757,249,752,250" title='68;-0.596;DataSet_1'>
<area shape="poly" coords="741,242,747,242,752,240,752,250,747,252,741,252" title='67;-0.6023;DataSet_1'>
<area shape="poly" coords="731,242,736,242,741,242,741,252,736,252,731,252" title='66;-0.6043;DataSet_1'>
<area shape="poly" coords="721,240,726,243,731,242,731,252,726,253,721,250" title='65;-0.6056;DataSet_1'>
<area shape="poly" coords="711,237,716,238,721,240,721,250,716,248,711,247" title='64;-0.5909;DataSet_1'>
<area shape="poly" coords="701,239,706,237,711,237,711,247,706,247,701,249" title='63;-0.5894;DataSet_1'>
<area shape="poly" coords="691,242,696,242,701,239,701,249,696,252,691,252" title='62;-0.6025;DataSet_1'>
<area shape="poly" coords="680,240,686,242,691,242,691,252,686,252,680,250" title='61;-0.6029;DataSet_1'>
<area shape="poly" coords="670,238,675,238,680,240,680,250,675,248,670,248" title='60;-0.5924;DataSet_1'>
<area shape="poly" coords="660,240,665,239,670,238,670,248,665,249,660,250" title='59;-0.5959;DataSet_1'>
<area shape="poly" coords="655,242,660,240,660,250,655,252" title='58;-0.6023;DataSet_1'>
<area shape="rect" coords="652,244,659,251" title='58;-0.6033;DataSet_1'>
<area shape="poly" coords="650,242,655,242,655,252,650,252" title='58;-0.6043;DataSet_1'>
<area shape="poly" coords="640,241,645,243,650,242,650,252,645,253,640,251" title='57;-0.6051;DataSet_1'>
<area shape="poly" coords="630,240,635,240,640,241,640,251,635,250,630,250" title='56;-0.5987;DataSet_1'>
<area shape="poly" coords="619,242,625,241,630,240,630,250,625,251,619,252" title='55;-0.6003;DataSet_1'>
<area shape="poly" coords="609,243,614,243,619,242,619,252,614,253,609,253" title='54;-0.6051;DataSet_1'>
<area shape="poly" coords="599,241,604,243,609,243,609,253,604,253,599,251" title='53;-0.6051;DataSet_1'>
<area shape="poly" coords="589,240,594,240,599,241,599,251,594,250,589,250" title='52;-0.5985;DataSet_1'>
<area shape="poly" coords="579,241,584,240,589,240,589,250,584,250,579,251" title='51;-0.5979;DataSet_1'>
<area shape="poly" coords="569,242,574,242,579,241,579,251,574,252,569,252" title='50;-0.6041;DataSet_1'>
<area shape="poly" coords="558,242,564,243,569,242,569,252,564,253,558,252" title='49;-0.6051;DataSet_1'>
<area shape="poly" coords="548,240,553,241,558,242,558,252,553,251,548,250" title='48;-0.5999;DataSet_1'>
<area shape="poly" coords="538,241,543,240,548,240,548,250,543,250,538,251" title='47;-0.5976;DataSet_1'>
<area shape="poly" coords="528,242,533,242,538,241,538,251,533,252,528,252" title='46;-0.6028;DataSet_1'>
<area shape="poly" coords="518,241,523,242,528,242,528,252,523,252,518,251" title='45;-0.6036;DataSet_1'>
<area shape="poly" coords="507,240,513,240,518,241,518,251,513,250,507,250" title='44;-0.5971;DataSet_1'>
<area shape="poly" coords="497,242,502,241,507,240,507,250,502,251,497,252" title='43;-0.6009;DataSet_1'>
<area shape="poly" coords="487,243,492,243,497,242,497,252,492,253,487,253" title='42;-0.6046;DataSet_1'>
<area shape="poly" coords="477,241,482,243,487,243,487,253,482,253,477,251" title='41;-0.6045;DataSet_1'>
<area shape="poly" coords="467,240,472,240,477,241,477,251,472,250,467,250" title='40;-0.5966;DataSet_1'>
<area shape="poly" coords="457,241,462,240,467,240,467,250,462,250,457,251" title='39;-0.5974;DataSet_1'>
<area shape="poly" coords="446,242,452,242,457,241,457,251,452,252,446,252" title='38;-0.6032;DataSet_1'>
<area shape="poly" coords="436,240,441,242,446,242,446,252,441,252,436,250" title='37;-0.6033;DataSet_1'>
<area shape="poly" coords="426,239,431,238,436,240,436,250,431,248,426,249" title='36;-0.5908;DataSet_1'>
<area shape="poly" coords="416,241,421,241,426,239,426,249,421,251,416,251" title='35;-0.6005;DataSet_1'>
<area shape="poly" coords="410,133,411,242,416,241,416,251,411,252,410,143" title='34;-0.6032;DataSet_1'>
<area shape="poly" coords="406,133,411,24,412,133,412,143,411,34,406,143" title='34;-0.0008;DataSet_1'>
<area shape="poly" coords="396,241,401,243,406,133,406,143,401,253,396,251" title='33;-0.6046;DataSet_1'>
<area shape="poly" coords="385,240,391,240,396,241,396,251,391,250,385,250" title='32;-0.5972;DataSet_1'>
<area shape="poly" coords="375,241,380,241,385,240,385,250,380,251,375,251" title='31;-0.6;DataSet_1'>
<area shape="poly" coords="365,242,370,242,375,241,375,251,370,252,365,252" title='30;-0.6036;DataSet_1'>
<area shape="poly" coords="355,241,360,242,365,242,365,252,360,252,355,251" title='29;-0.6028;DataSet_1'>
<area shape="poly" coords="345,240,350,240,355,241,355,251,350,250,345,250" title='28;-0.5978;DataSet_1'>
<area shape="poly" coords="335,241,340,240,345,240,345,250,340,250,335,251" title='27;-0.5985;DataSet_1'>
<area shape="poly" coords="324,242,330,242,335,241,335,251,330,252,324,252" title='26;-0.6037;DataSet_1'>
<area shape="poly" coords="314,241,319,242,324,242,324,252,319,252,314,251" title='25;-0.6038;DataSet_1'>
<area shape="poly" coords="304,240,309,240,314,241,314,251,309,250,304,250" title='24;-0.5977;DataSet_1'>
<area shape="poly" coords="294,241,299,240,304,240,304,250,299,250,294,251" title='23;-0.5978;DataSet_1'>
<area shape="poly" coords="284,242,289,242,294,241,294,251,289,252,284,252" title='22;-0.6023;DataSet_1'>
<area shape="poly" coords="273,239,279,242,284,242,284,252,279,252,273,249" title='21;-0.6032;DataSet_1'>
<area shape="poly" coords="263,237,268,237,273,239,273,249,268,247,263,247" title='20;-0.5883;DataSet_1'>
<area shape="poly" coords="253,239,258,238,263,237,263,247,258,248,253,249" title='19;-0.5913;DataSet_1'>
<area shape="poly" coords="243,241,248,241,253,239,253,249,248,251,243,251" title='18;-0.5999;DataSet_1'>
<area shape="poly" coords="238,242,243,241,243,251,238,252" title='17;-0.6019;DataSet_1'>
<area shape="poly" coords="233,138,233,247,243,247,243,138" title='17;-0.6034;DataSet_1'>
<area shape="poly" coords="233,131,238,24,239,133,239,143,238,34,233,141" title='17;-0.0008;DataSet_1'>
<area shape="poly" coords="223,239,228,239,233,131,233,141,228,249,223,249" title='16;-0.5936;DataSet_1'>
<area shape="poly" coords="212,241,218,240,223,239,223,249,218,250,212,251" title='15;-0.5977;DataSet_1'>
<area shape="poly" coords="202,242,207,242,212,241,212,251,207,252,202,252" title='14;-0.6021;DataSet_1'>
<area shape="poly" coords="197,242,202,242,202,252,197,252" title='13;-0.6021;DataSet_1'>
<area shape="poly" coords="192,240,197,242,197,252,192,250" title='13;-0.6025;DataSet_1'>
<area shape="poly" coords="182,239,187,238,192,240,192,250,187,248,182,249" title='12;-0.593;DataSet_1'>
<area shape="poly" coords="172,241,177,240,182,239,182,249,177,250,172,251" title='11;-0.5977;DataSet_1'>
<area shape="poly" coords="162,242,167,242,172,241,172,251,167,252,162,252" title='10;-0.6027;DataSet_1'>
<area shape="poly" coords="156,133,157,242,162,242,162,252,157,252,156,143" title='9;-0.602;DataSet_1'>
<area shape="poly" coords="151,132,157,24,158,133,158,143,157,34,151,142" title='9;-0.0006;DataSet_1'>
<area shape="poly" coords="141,241,146,240,151,132,151,142,146,250,141,251" title='8;-0.5965;DataSet_1'>
<area shape="poly" coords="131,242,136,242,141,241,141,251,136,252,131,252" title='7;-0.6026;DataSet_1'>
<area shape="poly" coords="121,242,126,242,131,242,131,252,126,252,121,252" title='6;-0.6035;DataSet_1'>
<area shape="poly" coords="111,240,116,242,121,242,121,252,116,252,111,250" title='5;-0.6035;DataSet_1'>
<area shape="poly" coords="101,240,106,239,111,240,111,250,106,249,101,250" title='4;-0.5958;DataSet_1'>
<area shape="poly" coords="90,241,96,241,101,240,101,250,96,251,90,251" title='3;-0.6016;DataSet_1'>
<area shape="poly" coords="80,242,85,242,90,241,90,251,85,252,80,252" title='2;-0.6029;DataSet_1'>
<area shape="poly" coords="75,242,80,242,80,252,75,252" title='1;-0.6034;DataSet_1'>

  Re: Problem with ImageMapHandler
Posted by Peter Kwan on May-07-2009 02:41
Hi Herv?,

Just from the image map, it is hard to determine if the image map is correct or incorrect. It would be more useful if you can include a snapshot of the web page. (In IE, choose File/Save As, then save the entire web page as a "Web Archive".) If it is not convenient to post the web page in a public forum, you may email to me at pkwan@advsofteng.net

Anyway, for a line chart, to create an image map, ChartDirector will try to "trace out" a polygon containing the line. However, because ChartDirector allows the line to flow in arbitrary directions and be self-intersecting, in the current implementation, it cannot always trace out the polygon. If it cannot trace out the polygon around a certain data point, it will at least create an image map that cover that data point. The image map will be a rectangle covering the point.

If the above is in fact the case, I am worry this is the current designed behaviour and cannot be changed.

Regards
Peter Kwan