Solved

ASP.net Chart Title Angle

Posted on 2014-09-08
2
187 Views
Last Modified: 2014-09-08
Hi

What VB.net code would I use to change the chart title on the left shown in the image below
to horizontal rather than vertical

1
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 500 total points
ID: 40310665
I assume that is the Title of the primary Y axis.

In earlier questions you used a variable chartArea1 to add a chart area to the chart dynamically. If you're still using that, this should do the trick:
chartArea1.AxisY.TextOrientation = TextOrientation.Horizontal

Open in new window

The text will wrap as the chart object sees fit but you can influence it by including newlines for example:
chartArea1.AxisY.Title = "MTD Sales Figure" & Environment.NewLine & "&" & Environment.NewLine & "MTD Budget"

Open in new window

By the way, if you don't have a chartarea1 variable you could of course do something like:
yourchart.ChartAreas(0).AxisY.TextOrientation = TextOrientation.Horizontal

Open in new window

0
 

Author Closing Comment

by:murbro
ID: 40310700
Thanks for the help
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question