<?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>Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx</link><description>When someone asked me how to rotate the axis labels of a chart from the Data Visualization package of the Silverlight Toolkit / WPF Toolkit earlier today, I realized it was time for a quick blog post. Because when I've answered a question two or three</description><dc:language>en</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10396185</link><pubDate>Fri, 22 Feb 2013 13:44:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10396185</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I figured out how to do it. I assigned the X axis a name in XAML (it didnt have one before).&lt;/p&gt;
&lt;p&gt;Then in the code behind... XAxis.Visibility = System.Windows.Visibility.Hidden;&lt;/p&gt;
&lt;p&gt;Sure enough... it worked.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10396185" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10394978</link><pubDate>Mon, 18 Feb 2013 20:20:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10394978</guid><dc:creator>Daniel</dc:creator><description>&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=10394978" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10394976</link><pubDate>Mon, 18 Feb 2013 20:18:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10394976</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Daniel,&lt;/p&gt;
&lt;p&gt;That probably means your axis was in the Chart.Axes collection and wasn&amp;#39;t suitable for the series+data. The easiest way to troubleshoot this is to define it via the Series.Independent/DependentAxis properties because that way the series knows it&amp;#39;s supposed to use that one and can throw if it&amp;#39;s not a good match.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10394976" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10394968</link><pubDate>Mon, 18 Feb 2013 19:50:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10394968</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried that. Instead of being hidden, the X axis labels just move to the top of the chart.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10394968" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10394942</link><pubDate>Mon, 18 Feb 2013 17:58:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10394942</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Daniel,&lt;/p&gt;
&lt;p&gt;I thought I&amp;#39;d blogged about this already, but maybe not. I do what you&amp;#39;re asking about here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/delay/archive/2009/06/15/peanut-butter-jelly-time-how-to-create-a-pleasing-visual-effect-with-silverlight-wpf-charting.aspx"&gt;blogs.msdn.com/.../peanut-butter-jelly-time-how-to-create-a-pleasing-visual-effect-with-silverlight-wpf-charting.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As I recall, you can&amp;#39;t set Visibilty=Collapsed, but have to set the Width/Height (depending on the axis) to1 instead.&lt;/p&gt;
&lt;p&gt;Hope that helps!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10394942" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10394837</link><pubDate>Mon, 18 Feb 2013 12:49:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10394837</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;On a related, but different note... &lt;/p&gt;
&lt;p&gt;I dont mean to hijack the post but web searches turn up nothing. &lt;/p&gt;
&lt;p&gt;Can we remove the axis labels completely? Or at least hide them from view... make them invisible?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10394837" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10369717</link><pubDate>Sun, 18 Nov 2012 23:57:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10369717</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Steve,&lt;/p&gt;
&lt;p&gt;Something similar to the above should work - as I recall you can set the height of the horizontal axis to 1 (not 0) to achieve this effect easily. I think I did something like that here: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/delay/archive/2009/06/15/peanut-butter-jelly-time-how-to-create-a-pleasing-visual-effect-with-silverlight-wpf-charting.aspx"&gt;blogs.msdn.com/.../peanut-butter-jelly-time-how-to-create-a-pleasing-visual-effect-with-silverlight-wpf-charting.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This should work just as well in code. Remember that an axis is automatically created if an appropriate one isn&amp;#39;t available when a series is added to a chart. So you can either add a suitable axis to begin with and customize it to your liking OR you can add the series and then look through the chart&amp;#39;s series collection to find the one that got created and then customize it.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10369717" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10369236</link><pubDate>Fri, 16 Nov 2012 14:25:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10369236</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried a few of the things you shared in this post, but I still fail to understand how I can completely hide the X-Axis labels. The problem is, my LineSeries are created and added via code (not XAML) and it seems like any style property setters won&amp;#39;t have any effect in XAML because there&amp;#39;s just nothing on the chart yet. Unfortunately, I can&amp;#39;t find a way to get that done in C# either... &amp;nbsp;I&amp;#39;d appreciate any help you may have provide on the topic!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10369236" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10213030</link><pubDate>Sun, 18 Sep 2011 01:00:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10213030</guid><dc:creator>David Anson</dc:creator><description>&lt;p&gt;Sina,&lt;/p&gt;
&lt;p&gt;Yes - anything you can do in XAML can be done in code. In this case, it would probably be easiest if the code retrieved the Style instance from the page/application&amp;#39;s Resources collection, but if you need to, you can create the entire Style in code as well.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10213030" width="1" height="1"&gt;</description></item><item><title>re: Turn your head and check out this post [How to: Easily rotate the axis labels of a Silverlight/WPF Toolkit chart]</title><link>http://blogs.msdn.com/b/delay/archive/2010/03/06/turn-your-head-and-check-out-this-post-how-to-easily-rotate-the-axis-labels-of-a-silverlight-wpf-toolkit-chart.aspx#10212979</link><pubDate>Sat, 17 Sep 2011 20:19:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10212979</guid><dc:creator>Sina</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;can i do this with C# code in wpf ?&lt;/p&gt;
&lt;p&gt;i need to create this in wpf with C# code because my program is a dynamic program and ,,,,,&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=10212979" width="1" height="1"&gt;</description></item></channel></rss>