Solved

ASP.net Chart Title Angle

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now