Solved

ASP.net Chart Title Angle

Posted on 2014-09-08
2
179 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

786 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