<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx</link><description>Adding Labels or Tooltips is a simple task in the chart, but what if we want to show more data than just a simple data point value? Keywords allows specifying rich content for many text based properties, so that you can build a tooltip as shown in this</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10365746</link><pubDate>Mon, 05 Nov 2012 10:42:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10365746</guid><dc:creator>mayur</dc:creator><description>&lt;p&gt;HI....&lt;/p&gt;
&lt;p&gt;I have a chart showing &amp;nbsp;graphs, the X value is a date and the Y value is a temperature.&lt;/p&gt;
&lt;p&gt;I am using the following code :&lt;/p&gt;
&lt;p&gt;DataTable mDt = GetData();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (mDt != null &amp;amp;&amp;amp; mDt.Rows.Count &amp;gt; 0)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Chart2.DataSource = mDt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chart2.Series[&amp;quot;Series2&amp;quot;].YValueMembers = &amp;quot;Temp&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chart2.Series[&amp;quot;Series2&amp;quot;].XValueMember = &amp;quot;date&amp;quot;;&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; Chart2.Series[&amp;quot;Series2&amp;quot;].ToolTip = &amp;quot; #VALY °C\nDate: #VALX&amp;quot;;&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp;Chart2.DataBind();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chart2.Series[&amp;quot;Series2&amp;quot;].IsValueShownAsLabel = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chart2.ChartAreas[&amp;quot;ChartArea2&amp;quot;].Area3DStyle.Enable3D = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chart2.Series[&amp;quot;Series2&amp;quot;].BorderWidth = 1;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Chart2.Series[&amp;quot;Series2&amp;quot;].MarkerStyle = MarkerStyle.Circle;&lt;/p&gt;
&lt;p&gt;				}&lt;/p&gt;
&lt;p&gt;I get the &amp;nbsp;Y value is correct, but the X value is always 0.Can anyone help??&lt;/p&gt;
&lt;p&gt;However, when I put a tooltip on the graphs like this: Chart2.Series[&amp;quot;Series2&amp;quot;].ToolTip = &amp;quot; #VALY °C\nDate: #VALX&amp;quot;;&lt;/p&gt;
&lt;p&gt;Can anyone help??&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10365746" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10328715</link><pubDate>Wed, 11 Jul 2012 07:02:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10328715</guid><dc:creator>hussain</dc:creator><description>&lt;p&gt;I have 0% in the label display and no chart area is shown in pie chart. I want to have chart area for 0% also. This is the requirement. If i change to 1% i can see the chart area which accomplish my goal but again label also showing up 1% which should not be.&lt;/p&gt;
&lt;p&gt;My requirement is chart area should be displayed but the label should be displayed as 0%.&lt;/p&gt;
&lt;p&gt;Please help me on this. Also, suggest some other alternatives if anything i can do.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10328715" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10305496</link><pubDate>Tue, 15 May 2012 18:14:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10305496</guid><dc:creator>Terry</dc:creator><description>&lt;p&gt;This:&lt;/p&gt;
&lt;p&gt;“Price= #VALY2{C0}/nAverage Price = #AVGY2{C0}/nVolume = #VALY3{#,,.;(#,,.);0}”&lt;/p&gt;
&lt;p&gt;should be this if I&amp;#39;m not wrong:&lt;/p&gt;
&lt;p&gt;“Price= #VALY2{C0}\nAverage Price = #AVGY2{C0}\nVolume = #VALY3{#,,.;(#,,.);0}”&lt;/p&gt;
&lt;p&gt;I changed the slash before the n&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10305496" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10176278</link><pubDate>Fri, 17 Jun 2011 14:31:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10176278</guid><dc:creator>Ranjith</dc:creator><description>&lt;p&gt;Thank you very much...really handy...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10176278" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10089289</link><pubDate>Thu, 11 Nov 2010 05:56:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10089289</guid><dc:creator>Maryam</dc:creator><description>&lt;p&gt;Hi Alex&lt;/p&gt;
&lt;p&gt;I am using the following code &lt;/p&gt;
&lt;p&gt;&amp;lt;asp:Series Name=&amp;quot;seriesPastVisitor&amp;quot; ChartType=&amp;quot;Bar&amp;quot; IsValueShownAsLabel=&amp;quot;true&amp;quot; BorderColor=&amp;quot;Transparent&amp;quot; BorderWidth=&amp;quot;2&amp;quot; Label=&amp;quot;#PERCENT (#VALY)&amp;quot; &amp;gt;&lt;/p&gt;
&lt;p&gt;The label generated is perfect when series has some non-zero values. If all point of the series are zero the label generated is NaN (0). I want to get rid of NaN. I want to show 0% instead of NaN. Please help me.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10089289" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10065046</link><pubDate>Mon, 20 Sep 2010 14:19:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10065046</guid><dc:creator>Robert J</dc:creator><description>&lt;p&gt;Alex, &lt;/p&gt;
&lt;p&gt;I tried using the keywords for my tooltip -&lt;/p&gt;
&lt;p&gt;chart1.Series[&amp;quot;Run 1&amp;quot;].ToolTip = &amp;quot;Run 1 - MP: #VALX{F2} IRI: #VALY{G0}&amp;quot;;&lt;/p&gt;
&lt;p&gt;but I am having problems. The #VALX returns the correct value for the data point but the #VALY is incorrect. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have posted this on the forum but have not had any responses. &amp;nbsp;I have also tied droping the xvalues and tried several variations for the Y value such as no formatting etc..but it still gives improper values.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Robert&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10065046" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10048335</link><pubDate>Tue, 10 Aug 2010 13:36:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10048335</guid><dc:creator>arenas</dc:creator><description>&lt;p&gt;hello sir,&lt;/p&gt;
&lt;p&gt;pls i m not able to fix the lable. also the title for the AxisZ.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://arenas.pagesperso-orange.fr/mmc/GrapheSimulation.gif"&gt;arenas.pagesperso-orange.fr/.../GrapheSimulation.gif&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;my best regard&lt;/p&gt;
&lt;p&gt;arnold&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10048335" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#10044863</link><pubDate>Mon, 02 Aug 2010 11:25:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10044863</guid><dc:creator>Rick Jackson</dc:creator><description>&lt;p&gt;Dear Alex,&lt;/p&gt;
&lt;p&gt;I am Chart Control in my Application and I am binding the chart like this &amp;nbsp;: -&lt;/p&gt;
&lt;p&gt;chrtZone.Series[&amp;quot;srsZone&amp;quot;].Points.DataBindXY(SubAreaName, TotalRainFall) and the chart is a Drill down chart.&lt;/p&gt;
&lt;p&gt;ok now my issue is how can i bind SubAreaID to the chart so i can get whenever i click on a SubArea ?&lt;/p&gt;
&lt;p&gt;ChartControl Series.Points.AddXY + Record ID + Drill DOwn ???&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10044863" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#9980277</link><pubDate>Wed, 17 Mar 2010 10:01:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9980277</guid><dc:creator>maxi326</dc:creator><description>&lt;p&gt;Dear Alex,&lt;/p&gt;
&lt;p&gt;Just figure that out, #VALY2 for second Y value and so on.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9980277" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Chart Control How-to: Add Rich Content Using Keywords</title><link>http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx#9980276</link><pubDate>Wed, 17 Mar 2010 09:58:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9980276</guid><dc:creator>maxi326</dc:creator><description>&lt;p&gt;Dear Alex,&lt;/p&gt;
&lt;p&gt;How to supports Multiple Y Values?&lt;/p&gt;
&lt;p&gt;I am having a RangeBar chart and add points to each series like this:&lt;/p&gt;
&lt;p&gt;cht_Result.Series[l_on].Points.AddXY(measurement.SortIndex, l_checkPoint.DateTime.DateTime, data.DateTime.DateTime);&lt;/p&gt;
&lt;p&gt;My tooltips is: cht_Result.Series[l_on].ToolTip = &amp;quot;#VALY{yyyy-MM-dd hh:mm},ON&amp;quot;;&lt;/p&gt;
&lt;p&gt;the tooltips does show a datetime but what about the other datetime that I added to that point?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9980276" width="1" height="1"&gt;</description></item></channel></rss>