MSChart工具提示

时间:2013-05-28 15:28:47

标签: asp.net mschart

我在页面上有多个MS图表控件 - 有些是隐藏的。但是,仅为第一个图表添加工具提示 - 为其他图表显示相同的提示,即使它们具有应显示的不同数据。

我已检查工具提示是否正确生成,但显示的是错误的工具提示。我已经检查了this SE question我认为可能是问题,但是没有 - 如果我给图表提供唯一ID,它会停止显示错误的工具提示,但不会显示正确的工具提示。

ETA - 下面的Html。对不起,有这么多,但我被要求避免回拨重新生成,所以它们一次性生成,并隐藏。

我链接到的另一个问题似乎涵盖了图像地图的问题,但正如我所说,如果我将ID更改为唯一,我会丢失所有工具提示(不是说这不是更好!)

干杯。

<div class="chartrevenue" style="display: none;">
<span id="MainContent_PLChartRev">
<input class="hidcharttype" type="hidden" value="10" name="ctl00$MainContent$ctl00">
<div class="selections"></div>
<div class="chartholder">
<div>
<span class="local">
<img style="height:500px;width:930px;border-width:0px;" usemap="#ImageMap" alt="" src="/handlers/ChartImg.axd?i=chart_bebd277d0a9b4da08ac970cdb8ab774b_4.png&g=5b4a90fc4e78415fb8e35d1c8673247a">
<map id="ImageMap" name="ImageMap">
<area alt="Prior Year Revenue 116,918.20 (Dec)" title="Prior Year Revenue 116,918.20 (Dec)" coords="838,88,861,405" shape="rect">
<area alt="Prior Year Revenue 113,011.32 (Nov)" title="Prior Year Revenue 113,011.32 (Nov)" coords="779,99,803,405" shape="rect">
<area alt="Prior Year Revenue 122,948.69 (Oct)" title="Prior Year Revenue 122,948.69 (Oct)" coords="721,72,744,405" shape="rect">
<area alt="Prior Year Revenue 112,824.83 (Sep)" title="Prior Year Revenue 112,824.83 (Sep)" coords="663,99,686,405" shape="rect">
<area alt="Prior Year Revenue 109,322.27 (Aug)" title="Prior Year Revenue 109,322.27 (Aug)" coords="604,109,627,405" shape="rect">
<area alt="Prior Year Revenue 120,990.56 (Jul)" title="Prior Year Revenue 120,990.56 (Jul)" coords="546,77,569,405" shape="rect">
<area alt="Prior Year Revenue 114,118.37 (Jun)" title="Prior Year Revenue 114,118.37 (Jun)" coords="487,96,511,405" shape="rect">
<area alt="Prior Year Revenue 111,853.50 (May)" title="Prior Year Revenue 111,853.50 (May)" coords="429,102,452,405" shape="rect">
<area alt="Prior Year Revenue 120,496.47 (Apr)" title="Prior Year Revenue 120,496.47 (Apr)" coords="370,78,394,405" shape="rect">
<area alt="Prior Year Revenue 114,781.91 (Mar)" title="Prior Year Revenue 114,781.91 (Mar)" coords="312,94,335,405" shape="rect">
<area alt="Prior Year Revenue 106,949.25 (Feb)" title="Prior Year Revenue 106,949.25 (Feb)" coords="253,115,277,405" shape="rect">
<area alt="Prior Year Revenue 119,182.35 (Jan)" title="Prior Year Revenue 119,182.35 (Jan)" coords="195,82,218,405" shape="rect">
<area alt="Actual Revenue 107,231.97 (Feb)" title="Actual Revenue 107,231.97 (Feb)" coords="230,114,253,405" shape="rect">
<area alt="Actual Revenue 115,946.77 (Jan)" title="Actual Revenue 115,946.77 (Jan)" coords="172,91,195,405" shape="rect">
</map>
</span>
<span class="dollar" style="display: none;">
<img style="height:500px;width:930px;border-width:0px;" usemap="#ImageMap" alt="" src="/handlers/ChartImg.axd?i=chart_bebd277d0a9b4da08ac970cdb8ab774b_5.png&g=5643d16a7165463b9e7d42fe319505bd">
<map id="ImageMap" name="ImageMap">
<area alt="Prior Year Revenue $116,918.20 (Dec)" title="Prior Year Revenue $116,918.20 (Dec)" coords="838,88,861,405" shape="rect">
<area alt="Prior Year Revenue $113,011.32 (Nov)" title="Prior Year Revenue $113,011.32 (Nov)" coords="779,99,803,405" shape="rect">
<area alt="Prior Year Revenue $122,948.69 (Oct)" title="Prior Year Revenue $122,948.69 (Oct)" coords="721,72,744,405" shape="rect">
<area alt="Prior Year Revenue $112,824.83 (Sep)" title="Prior Year Revenue $112,824.83 (Sep)" coords="663,99,686,405" shape="rect">
<area alt="Prior Year Revenue $109,322.27 (Aug)" title="Prior Year Revenue $109,322.27 (Aug)" coords="604,109,627,405" shape="rect">
<area alt="Prior Year Revenue $120,990.56 (Jul)" title="Prior Year Revenue $120,990.56 (Jul)" coords="546,77,569,405" shape="rect">
<area alt="Prior Year Revenue $114,118.37 (Jun)" title="Prior Year Revenue $114,118.37 (Jun)" coords="487,96,511,405" shape="rect">
<area alt="Prior Year Revenue $111,853.50 (May)" title="Prior Year Revenue $111,853.50 (May)" coords="429,102,452,405" shape="rect">
<area alt="Prior Year Revenue $120,496.47 (Apr)" title="Prior Year Revenue $120,496.47 (Apr)" coords="370,78,394,405" shape="rect">
<area alt="Prior Year Revenue $114,781.91 (Mar)" title="Prior Year Revenue $114,781.91 (Mar)" coords="312,94,335,405" shape="rect">
<area alt="Prior Year Revenue $106,949.25 (Feb)" title="Prior Year Revenue $106,949.25 (Feb)" coords="253,115,277,405" shape="rect">
<area alt="Prior Year Revenue $119,182.35 (Jan)" title="Prior Year Revenue $119,182.35 (Jan)" coords="195,82,218,405" shape="rect">
<area alt="Actual Revenue $107,231.97 (Feb)" title="Actual Revenue $107,231.97 (Feb)" coords="230,114,253,405" shape="rect">
<area alt="Actual Revenue $115,946.77 (Jan)" title="Actual Revenue $115,946.77 (Jan)" coords="172,91,195,405" shape="rect">
</map>
</span>
</div>
</div>
</span>
</div>
<div class="chartprofit" style="display: block;">
<span id="MainContent_PLChartGP">
<input class="hidcharttype" type="hidden" value="4" name="ctl00$MainContent$ctl05">
<div class="selections"></div>
<div class="chartholder">
<div>
<span class="local">
<img style="height:500px;width:930px;border-width:0px;" usemap="#ImageMap" alt="" src="/handlers/ChartImg.axd?i=chart_bebd277d0a9b4da08ac970cdb8ab774b_7.png&g=e3b1616a26d34a1cacd99232ef505332">
<map id="ImageMap" name="ImageMap">
<area alt="Prior Year Gross Profit 592,912.37 (Dec)" title="Prior Year Gross Profit 592,912.37 (Dec)" coords="779,63,795,54,795,54,812,44,820,39,820,39,827,35,833,31,833,31,837,29,839,31,834,34,828,37,828,37,821,42,813,46,796,56,780,65" shape="poly">
<area alt="Prior Year Gross Profit 539,267.06 (Nov)" title="Prior Year Gross Profit 539,267.06 (Nov)" coords="720,93,750,77,779,63,780,65,751,80,751,80,722,95" shape="poly">
<area alt="Prior Year Gross Profit 491,842.57 (Oct)" title="Prior Year Gross Profit 491,842.57 (Oct)" coords="662,129,676,120,676,120,691,111,691,111,706,101,720,93,722,95,707,104,707,104,693,113,678,123,663,131" shape="poly">
<area alt="Prior Year Gross Profit 434,931.51 (Sep)" title="Prior Year Gross Profit 434,931.51 (Sep)" coords="604,158,633,144,633,144,662,129,663,131,634,147,605,160" shape="poly">
<area alt="Prior Year Gross Profit 389,165.88 (Aug)" title="Prior Year Gross Profit 389,165.88 (Aug)" coords="545,182,560,176,574,170,589,164,589,164,604,158,605,160,590,167,576,172,576,172,561,178,561,178,546,185" shape="poly">
<area alt="Prior Year Gross Profit 350,003.68 (Jul)" title="Prior Year Gross Profit 350,003.68 (Jul)" coords="487,218,501,209,501,209,516,200,530,191,545,183,546,185,532,193,532,193,517,203,503,212,488,221" shape="poly">
<area alt="Prior Year Gross Profit 293,237.97 (Jun)" title="Prior Year Gross Profit 293,237.97 (Jun)" coords="428,251,457,236,457,236,487,218,488,221,459,238,430,254" shape="poly">
<area alt="Prior Year Gross Profit 241,693.22 (May)" title="Prior Year Gross Profit 241,693.22 (May)" coords="370,275,384,269,399,263,414,257,414,257,428,251,429,254,415,260,400,266,400,266,386,272,386,272,371,278" shape="poly">
<area alt="Prior Year Gross Profit 203,096.31 (Apr)" title="Prior Year Gross Profit 203,096.31 (Apr)" coords="311,311,326,302,326,302,340,293,355,284,370,276,371,278,357,286,357,286,342,295,342,295,327,305,313,313" shape="poly">
<area alt="Prior Year Gross Profit 147,434.69 (Mar)" title="Prior Year Gross Profit 147,434.69 (Mar)" coords="253,340,282,326,282,326,311,311,313,313,284,329,254,343" shape="poly">
<area alt="Prior Year Gross Profit 101,271.99 (Feb)" title="Prior Year Gross Profit 101,271.99 (Feb)" coords="195,367,199,365,199,365,205,362,212,359,212,359,220,355,237,347,237,347,253,340,254,343,238,350,221,358,213,362,206,365,206,365,200,368,196,370" shape="poly">
<area alt="Actual Gross Profit 91,683.37 (Feb)" title="Actual Gross Profit 91,683.37 (Feb)" coords="195,373,199,371,206,368,206,368,215,364,224,360,224,360,233,355,241,351,248,348,248,348,253,346,254,349,249,351,242,354,242,354,234,358,225,363,216,367,216,367,208,371,201,374,201,374,196,376" shape="poly">
</map>
</span>
<span class="dollar" style="display: none;">
<img style="height:500px;width:930px;border-width:0px;" usemap="#ImageMap" alt="" src="/handlers/ChartImg.axd?i=chart_bebd277d0a9b4da08ac970cdb8ab774b_0.png&g=d7a2aadec2754a568e358c4da02489cc">
<map id="ImageMap" name="ImageMap">
<area alt="Prior Year Gross Profit $592,912.37 (Dec)" title="Prior Year Gross Profit $592,912.37 (Dec)" coords="779,63,795,54,795,54,812,44,820,39,820,39,827,35,833,31,833,31,837,29,839,31,834,34,828,37,828,37,821,42,813,46,796,56,780,65" shape="poly">
<area alt="Prior Year Gross Profit $539,267.06 (Nov)" title="Prior Year Gross Profit $539,267.06 (Nov)" coords="720,93,750,77,779,63,780,65,751,80,751,80,722,95" shape="poly">
<area alt="Prior Year Gross Profit $491,842.57 (Oct)" title="Prior Year Gross Profit $491,842.57 (Oct)" coords="662,129,676,120,676,120,691,111,691,111,706,101,720,93,722,95,707,104,707,104,693,113,678,123,663,131" shape="poly">
<area alt="Prior Year Gross Profit $434,931.51 (Sep)" title="Prior Year Gross Profit $434,931.51 (Sep)" coords="604,158,633,144,633,144,662,129,663,131,634,147,605,160" shape="poly">
<area alt="Prior Year Gross Profit $389,165.88 (Aug)" title="Prior Year Gross Profit $389,165.88 (Aug)" coords="545,182,560,176,574,170,589,164,589,164,604,158,605,160,590,167,576,172,576,172,561,178,561,178,546,185" shape="poly">
<area alt="Prior Year Gross Profit $350,003.68 (Jul)" title="Prior Year Gross Profit $350,003.68 (Jul)" coords="487,218,501,209,501,209,516,200,530,191,545,183,546,185,532,193,532,193,517,203,503,212,488,221" shape="poly">
<area alt="Prior Year Gross Profit $293,237.97 (Jun)" title="Prior Year Gross Profit $293,237.97 (Jun)" coords="428,251,457,236,457,236,487,218,488,221,459,238,430,254" shape="poly">
<area alt="Prior Year Gross Profit $241,693.22 (May)" title="Prior Year Gross Profit $241,693.22 (May)" coords="370,275,384,269,399,263,414,257,414,257,428,251,429,254,415,260,400,266,400,266,386,272,386,272,371,278" shape="poly">
<area alt="Prior Year Gross Profit $203,096.31 (Apr)" title="Prior Year Gross Profit $203,096.31 (Apr)" coords="311,311,326,302,326,302,340,293,355,284,370,276,371,278,357,286,357,286,342,295,342,295,327,305,313,313" shape="poly">
<area alt="Prior Year Gross Profit $147,434.69 (Mar)" title="Prior Year Gross Profit $147,434.69 (Mar)" coords="253,340,282,326,282,326,311,311,313,313,284,329,254,343" shape="poly">
<area alt="Prior Year Gross Profit $101,271.99 (Feb)" title="Prior Year Gross Profit $101,271.99 (Feb)" coords="195,367,199,365,199,365,205,362,212,359,212,359,220,355,237,347,237,347,253,340,254,343,238,350,221,358,213,362,206,365,206,365,200,368,196,370" shape="poly">
<area alt="Actual Gross Profit $91,683.37 (Feb)" title="Actual Gross Profit $91,683.37 (Feb)" coords="195,373,199,371,206,368,206,368,215,364,224,360,224,360,233,355,241,351,248,348,248,348,253,346,254,349,249,351,242,354,242,354,234,358,225,363,216,367,216,367,208,371,201,374,201,374,196,376" shape="poly">
</map>
</span>
</div>
</div>
</span>
</div>
<div class="chartmargin" style="display: none;">
<span id="MainContent_PLChartMar">
<input class="hidcharttype" type="hidden" value="10" name="ctl00$MainContent$ctl10">
<div class="selections"></div>
<div class="chartholder">
<div>
<span class="local">
<img style="height:500px;width:930px;border-width:0px;" usemap="#ImageMap" alt="" src="/handlers/ChartImg.axd?i=chart_bebd277d0a9b4da08ac970cdb8ab774b_1.png&g=bc1da27049ed4a8d84a8ef4c8dfab01c">
<map id="ImageMap" name="ImageMap">
<area alt="Prior Year Margin 45.88 (Dec)" title="Prior Year Margin 45.88 (Dec)" coords="836,231,860,405" shape="rect">
<area alt="Prior Year Margin 41.96 (Nov)" title="Prior Year Margin 41.96 (Nov)" coords="775,246,799,405" shape="rect">
<area alt="Prior Year Margin 46.28 (Oct)" title="Prior Year Margin 46.28 (Oct)" coords="714,229,738,405" shape="rect">
<area alt="Prior Year Margin 40.56 (Sep)" title="Prior Year Margin 40.56 (Sep)" coords="654,251,678,405" shape="rect">
<area alt="Prior Year Margin 35.82 (Aug)" title="Prior Year Margin 35.82 (Aug)" coords="593,269,617,405" shape="rect">
<area alt="Prior Year Margin 46.91 (Jul)" title="Prior Year Margin 46.91 (Jul)" coords="532,227,556,405" shape="rect">
<area alt="Prior Year Margin 45.16 (Jun)" title="Prior Year Margin 45.16 (Jun)" coords="471,234,496,405" shape="rect">
<area alt="Prior Year Margin 34.50 (May)" title="Prior Year Margin 34.50 (May)" coords="411,274,435,405" shape="rect">
<area alt="Prior Year Margin 46.19 (Apr)" title="Prior Year Margin 46.19 (Apr)" coords="350,230,374,405" shape="rect">
<area alt="Prior Year Margin 40.21 (Mar)" title="Prior Year Margin 40.21 (Mar)" coords="289,253,314,405" shape="rect">
<area alt="Prior Year Margin 39.82 (Feb)" title="Prior Year Margin 39.82 (Feb)" coords="229,254,253,405" shape="rect">
<area alt="Prior Year Margin 49.23 (Jan)" title="Prior Year Margin 49.23 (Jan)" coords="168,218,192,405" shape="rect">
<area alt="Actual Margin 40.62 (Feb)" title="Actual Margin 40.62 (Feb)" coords="204,251,229,405" shape="rect">
<area alt="Actual Margin 41.50 (Jan)" title="Actual Margin 41.50 (Jan)" coords="144,248,168,405" shape="rect">
</map>
</span>
<span class="dollar" style="display: none;">
<img style="height:500px;width:930px;border-width:0px;" usemap="#ImageMap" alt="" src="/handlers/ChartImg.axd?i=chart_bebd277d0a9b4da08ac970cdb8ab774b_2.png&g=c89110c237134bcbad34a6879d4911b4">
<map id="ImageMap" name="ImageMap">
<area alt="Prior Year Margin $45.88 (Dec)" title="Prior Year Margin $45.88 (Dec)" coords="836,231,860,405" shape="rect">
<area alt="Prior Year Margin $41.96 (Nov)" title="Prior Year Margin $41.96 (Nov)" coords="775,246,799,405" shape="rect">
<area alt="Prior Year Margin $46.28 (Oct)" title="Prior Year Margin $46.28 (Oct)" coords="714,229,738,405" shape="rect">
<area alt="Prior Year Margin $40.56 (Sep)" title="Prior Year Margin $40.56 (Sep)" coords="654,251,678,405" shape="rect">
<area alt="Prior Year Margin $35.82 (Aug)" title="Prior Year Margin $35.82 (Aug)" coords="593,269,617,405" shape="rect">
<area alt="Prior Year Margin $46.91 (Jul)" title="Prior Year Margin $46.91 (Jul)" coords="532,227,556,405" shape="rect">
<area alt="Prior Year Margin $45.16 (Jun)" title="Prior Year Margin $45.16 (Jun)" coords="471,234,496,405" shape="rect">
<area alt="Prior Year Margin $34.50 (May)" title="Prior Year Margin $34.50 (May)" coords="411,274,435,405" shape="rect">
<area alt="Prior Year Margin $46.19 (Apr)" title="Prior Year Margin $46.19 (Apr)" coords="350,230,374,405" shape="rect">
<area alt="Prior Year Margin $40.21 (Mar)" title="Prior Year Margin $40.21 (Mar)" coords="289,253,314,405" shape="rect">
<area alt="Prior Year Margin $39.82 (Feb)" title="Prior Year Margin $39.82 (Feb)" coords="229,254,253,405" shape="rect">
<area alt="Prior Year Margin $49.23 (Jan)" title="Prior Year Margin $49.23 (Jan)" coords="168,218,192,405" shape="rect">
<area alt="Actual Margin $40.62 (Feb)" title="Actual Margin $40.62 (Feb)" coords="204,251,229,405" shape="rect">
<area alt="Actual Margin $41.50 (Jan)" title="Actual Margin $41.50 (Jan)" coords="144,248,168,405" shape="rect">
</map>
</span>
</div>
</div>
</span>
</div>
</div>

0 个答案:

没有答案