Solved

ASP.net Chart Title Angle

Posted on 2014-09-08
2
190 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:Murray Brown
[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:Murray Brown
ID: 40310700
Thanks for the help
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

635 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