Microsoft 차트 컨트롤을 사용하여 웹 페이지에 몇 개의 차트를 넣었습니다. 모두 차트에 대한 이미지 맵에 같은 이름을 사용하는 것이동일한 페이지의 여러 MS 차트가 동일한 이미지 맵을 사용합니다.
가<table id="chart">
<tr>
<td id="rolling">
<img src="/ChartImg.axd?i=chart_45ec7063132a47d9bf08ce377f4d6030_0.png&g=d82064ecb0cf459dbda23039ae0c3f70" alt="" usemap="#ImageMap" style="height:200px;width:250px;border-width:0px;" />
<map name="ImageMap" id="ImageMap">
<area shape="rect" coords="190,112,242,132" title="$321.01" alt="" />
<area shape="rect" coords="59,69,111,132" title="$1,017.92" alt="" />
<area shape="rect" coords="138,104,190,132" title="$449.04" alt="" />
<area shape="rect" coords="7,25,59,132" title="$1,714.59" alt="" />
</map>
</td>
<td id="highrisk">
<img src="/ChartImg.axd?i=chart_45ec7063132a47d9bf08ce377f4d6030_1.png&g=6f876c9016cd4b72b5ba60609b9d05ec" alt="" usemap="#ImageMap" style="height:200px;width:250px;border-width:0px;" />
<map name="ImageMap" id="ImageMap">
<area shape="rect" coords="190,128,242,132" title="41" alt="" />
<area shape="rect" coords="59,131,111,132" title="6" alt="" />
<area shape="rect" coords="138,25,190,132" title="922" alt="" />
<area shape="rect" coords="7,121,59,132" title="100" alt="" />
</map>
</td>
</tr>
</table>
참고 :이 개 차트를 렌더링하면 결과 HTML은 다음과 같이 (테이블, 내 인 IMG와지도가 MS 차트에서이다)이다 각 차트 - "ImageMap"- 각 요소에 다른 제목을 붙이더라도 후속 차트에서 첫 번째 차트의 좌표를 사용합니다.
1 페이지에 2 개의 차트를 렌더링하는 데 문제가 있습니까? 이 문제를 해결할 수있는 방법이 있습니까?
이전의 대답과 의견에도 불구하고 테스트 해봤는데 차트의 ID를 변경하면지도의 ID가 변경됩니다. 차트에 다른 ID가 있는지 확인하는 방법을 찾아서 설정하면됩니다. – Dave
@Dave 테스트 및 검증에 감사드립니다. –
정확히 내가 뭘 찾고 있었는지 .. 덕분에 Dan !! – bluwater2001