GetHtmlImageMap returning an empty map element<span style="font-size:x-small">GetHtmlImageMap does not return any meaningfull HTML image map code. It returns and empty image map as shown below:</span> <br/><span style="font-size:x-small"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><br/>string</span></span><span style="font-size:x-small"> chart = GetChart(data);<br/>chart.RenderType = </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">RenderType</span></span><span style="font-size:x-small">.ImageMap;<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small"> map = chart.GetHtmlImageMap(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;trendmap&quot;</span></span><span style="font-size:x-small">);<span style="font-size:x-small"><span style="font-size:x-small"> <br/></span></span></span></span><br/>map returns the following:<br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><br/>&lt;</span></span></span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">map</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">name</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;trendmap&quot;&gt;<br/></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">    &lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">area</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">shape</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;rect&quot;</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">coords</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;0,0,0,0&quot;</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">alt</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;&quot;/&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">map</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> <br/></span></span></span></span><br/>I have the following method block in my code<span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"> <br/><br/>Chart</span></span></span></span> G<span style="font-size:x-small">etChart(Tripple&lt;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">decimal</span></span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">decimal</span></span><span style="font-size:x-small">&gt; data)<br/>{<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#0000ff">    </span>Chart</span></span><span style="font-size:x-small"> chart = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">Chart</span></span><span style="font-size:x-small">();<br/><span style="color:#0000ff">    </span>chart.IsMapEnabled = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">true</span></span><span style="font-size:x-small">;<br/><span style="color:#0000ff">    </span>chart.Width = 600;<br/><span style="color:#0000ff">    </span>chart.Height = 150; <br/></span><span style="font-size:x-small;color:#008000"><span style="font-size:x-small;color:#008000"><span style="color:#0000ff"><br/>    </span>// Populate series with random data<br/></span></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#0000ff">    </span>Series</span></span><span style="font-size:x-small"> series1 = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">Series</span></span><span style="font-size:x-small">(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Bank&quot;</span></span><span style="font-size:x-small">);<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#0000ff">    </span>Series</span></span><span style="font-size:x-small"> series2 = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">Series</span></span><span style="font-size:x-small">(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Peer&quot;</span></span><span style="font-size:x-small">); <br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><br/>    for</span></span><span style="font-size:x-small"> (</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">int</span></span><span style="font-size:x-small"> i; i &lt; data.Count; i++)<br/><span style="color:#0000ff">    </span>{<br/><span style="color:#0000ff">        </span>series1.Points.AddXY(data[i].First, data[i].Second);<br/><span style="color:#0000ff">        </span>series2.Points.AddXY(data[i].First, data[i].Third);<br/><br/><span style="color:#0000ff">        </span>series1.Points[i].ToolTip = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small">.Format(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;{0}: {1}&quot;</span></span><span style="font-size:x-small">, data[i].First, data[i].Second);<br/><span style="color:#0000ff">        </span>series2.Points[i].ToolTip = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small">.Format(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;{0}: {1}&quot;</span></span><span style="font-size:x-small">, data[i].First, data[i].Third);<br/><span style="color:#0000ff">    </span>}<span style="font-size:x-small"> <p><span style="color:#0000ff">    </span>chart.Series.Add(series1);<br/><span style="color:#0000ff">    </span>chart.Series.Add(series2);</p> <span style="font-size:x-small"> <p>Am I missing a property?</p> </span></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">    return</span></span><span style="font-size:x-small"> chart;<br/>}</span>© 2009 Microsoft Corporation. All rights reserved.Sat, 11 Jul 2009 19:15:07 Zc407e958-f093-4c52-a9b8-17c7c2cde8e2http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/c407e958-f093-4c52-a9b8-17c7c2cde8e2#c407e958-f093-4c52-a9b8-17c7c2cde8e2http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/c407e958-f093-4c52-a9b8-17c7c2cde8e2#c407e958-f093-4c52-a9b8-17c7c2cde8e2bennybhttp://social.msdn.microsoft.com/Profile/en-US/?user=bennybGetHtmlImageMap returning an empty map element<span style="font-size:x-small">GetHtmlImageMap does not return any meaningfull HTML image map code. It returns and empty image map as shown below:</span> <br/><span style="font-size:x-small"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><br/>string</span></span><span style="font-size:x-small"> chart = GetChart(data);<br/>chart.RenderType = </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">RenderType</span></span><span style="font-size:x-small">.ImageMap;<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small"> map = chart.GetHtmlImageMap(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;trendmap&quot;</span></span><span style="font-size:x-small">);<span style="font-size:x-small"><span style="font-size:x-small"> <br/></span></span></span></span><br/>map returns the following:<br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><br/>&lt;</span></span></span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">map</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">name</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;trendmap&quot;&gt;<br/></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">    &lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">area</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">shape</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;rect&quot;</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">coords</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;0,0,0,0&quot;</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">alt</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=&quot;&quot;/&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">map</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> <br/></span></span></span></span><br/>I have the following method block in my code<span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"> <br/><br/>Chart</span></span></span></span> G<span style="font-size:x-small">etChart(Tripple&lt;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">decimal</span></span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">decimal</span></span><span style="font-size:x-small">&gt; data)<br/>{<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#0000ff">    </span>Chart</span></span><span style="font-size:x-small"> chart = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">Chart</span></span><span style="font-size:x-small">();<br/><span style="color:#0000ff">    </span>chart.IsMapEnabled = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">true</span></span><span style="font-size:x-small">;<br/><span style="color:#0000ff">    </span>chart.Width = 600;<br/><span style="color:#0000ff">    </span>chart.Height = 150; <br/></span><span style="font-size:x-small;color:#008000"><span style="font-size:x-small;color:#008000"><span style="color:#0000ff"><br/>    </span>// Populate series with random data<br/></span></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#0000ff">    </span>Series</span></span><span style="font-size:x-small"> series1 = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">Series</span></span><span style="font-size:x-small">(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Bank&quot;</span></span><span style="font-size:x-small">);<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="color:#0000ff">    </span>Series</span></span><span style="font-size:x-small"> series2 = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">Series</span></span><span style="font-size:x-small">(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Peer&quot;</span></span><span style="font-size:x-small">); <br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><br/>    for</span></span><span style="font-size:x-small"> (</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">int</span></span><span style="font-size:x-small"> i; i &lt; data.Count; i++)<br/><span style="color:#0000ff">    </span>{<br/><span style="color:#0000ff">        </span>series1.Points.AddXY(data[i].First, data[i].Second);<br/><span style="color:#0000ff">        </span>series2.Points.AddXY(data[i].First, data[i].Third);<br/><br/><span style="color:#0000ff">        </span>series1.Points[i].ToolTip = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small">.Format(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;{0}: {1}&quot;</span></span><span style="font-size:x-small">, data[i].First, data[i].Second);<br/><span style="color:#0000ff">        </span>series2.Points[i].ToolTip = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small">.Format(</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;{0}: {1}&quot;</span></span><span style="font-size:x-small">, data[i].First, data[i].Third);<br/><span style="color:#0000ff">    </span>}<span style="font-size:x-small"> <p><span style="color:#0000ff">    </span>chart.Series.Add(series1);<br/><span style="color:#0000ff">    </span>chart.Series.Add(series2);</p> <span style="font-size:x-small"> <p>Am I missing a property?</p> </span></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">    return</span></span><span style="font-size:x-small"> chart;<br/>}</span>Thu, 02 Jul 2009 14:36:25 Z2009-07-02T14:38:09Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/c407e958-f093-4c52-a9b8-17c7c2cde8e2#d088d20a-3ebe-44e2-bdff-5bec2789716fhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/c407e958-f093-4c52-a9b8-17c7c2cde8e2#d088d20a-3ebe-44e2-bdff-5bec2789716fDelianThttp://social.msdn.microsoft.com/Profile/en-US/?user=DelianTGetHtmlImageMap returning an empty map elementCall Chart.SaveImage( Stream.Null ) before Chart.GetHtmlImageMap;<br/><span style="color:#0000ff;font-size:xx-small"><br/>string</span><span style="font-size:xx-small"><span style="font-size:x-small"> chart = GetChart(data);<br/>chart.SaveImage( Stream.Null );<br/></span></span><span style="font-size:xx-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">string</span></span><span style="font-size:x-small"> map = chart.GetHtmlImageMap(</span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;trendmap&quot;</span></span></span><span style="font-size:x-small"><span style="font-size:xx-small">);</span><span style="font-size:x-small"><span style="font-size:x-small"><span style="font-size:xx-small"> </span><br/><br/>Delian</span></span></span>Fri, 03 Jul 2009 04:11:04 Z2009-07-03T04:11:04Z