Note that there are some explanatory texts on larger screens.

plurals
  1. POMultiple MS Charts on the same page use the same image map
    primarykey
    data
    text
    <p>I'm using the Microsoft Chart control to put a couple of charts on a web page. If you render 2 charts, the resulting HTML is something like this (the table is mine, the img and map are from the MS Chart):</p> <pre><code>&lt;table id="chart"&gt; &lt;tr&gt; &lt;td id="rolling"&gt; &lt;img src="/ChartImg.axd?i=chart_45ec7063132a47d9bf08ce377f4d6030_0.png&amp;amp;g=d82064ecb0cf459dbda23039ae0c3f70" alt="" usemap="#ImageMap" style="height:200px;width:250px;border-width:0px;" /&gt; &lt;map name="ImageMap" id="ImageMap"&gt; &lt;area shape="rect" coords="190,112,242,132" title="$321.01" alt="" /&gt; &lt;area shape="rect" coords="59,69,111,132" title="$1,017.92" alt="" /&gt; &lt;area shape="rect" coords="138,104,190,132" title="$449.04" alt="" /&gt; &lt;area shape="rect" coords="7,25,59,132" title="$1,714.59" alt="" /&gt; &lt;/map&gt; &lt;/td&gt; &lt;td id="highrisk"&gt; &lt;img src="/ChartImg.axd?i=chart_45ec7063132a47d9bf08ce377f4d6030_1.png&amp;amp;g=6f876c9016cd4b72b5ba60609b9d05ec" alt="" usemap="#ImageMap" style="height:200px;width:250px;border-width:0px;" /&gt; &lt;map name="ImageMap" id="ImageMap"&gt; &lt;area shape="rect" coords="190,128,242,132" title="41" alt="" /&gt; &lt;area shape="rect" coords="59,131,111,132" title="6" alt="" /&gt; &lt;area shape="rect" coords="138,25,190,132" title="922" alt="" /&gt; &lt;area shape="rect" coords="7,121,59,132" title="100" alt="" /&gt; &lt;/map&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>Note that both charts use the same name for the image map for each chart - "ImageMap" - and it uses the coords from the first chart on the subsequent charts, even though it puts different titles on each element.</p> <p>Am I doing something wrong in trying to render 2 charts on 1 page? Is there a workaround for this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload