Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP.net Chart Title Angle

Posted on 2014-09-08
2
Medium Priority
?
196 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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

715 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