Jump to content

Titulo aos graficos

Recommended Posts


Como posso dar um titulo ao gráfico (titulo geral), mas não é um titulo ao eixo do X nem do Y, para o X e Y fiz assim:

'define o titulo do eixo x , sua fonte e a cor

	Chart1.ChartAreas(0).AxisX.Title = "Pessoas"
	Chart1.ChartAreas(0).AxisX.TitleFont = New Font("Times New Roman", 12, FontStyle.Bold)
	Chart1.ChartAreas(0).AxisX.TitleForeColor = Color.Blue
	'define o titulo do eixo y , sua fonte e a cor
	Chart1.ChartAreas(0).AxisY.Title = "Numero"
	Chart1.ChartAreas(0).AxisY.TitleFont = New Font("Times New Roman", 12, FontStyle.Bold)
	Chart1.ChartAreas(0).AxisY.TitleForeColor = Color.Blue

Mas para o titulo geral nao consigo fazer:

'Adicionar título

Chart1.ChartArea(0).ChartTitle.Text = "Hello Charting World!"

Edited by ribeiro55

Share this post

Link to post
Share on other sites


Eu no VB2008 tenho assim

' Set chart title

Chart1.Titles(0).Text = "?????????????" & ControlChars.Lf & "??????????????"

' Set chart title font

Chart1.Titles(0).Font = New Font("Times New Roman", 14, FontStyle.Bold)

' A cor foi activada nas propriedades

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.