RitaAndrade Posted August 19, 2013 at 08:20 PM Report #522131 Posted August 19, 2013 at 08:20 PM Boa noite 😛 Ando com um pequeno problema, eu tenho um gráfico e o utilizador pode optar por meter legenda ou não mas não sei como fazer por exemplo para definir um tipo de gráfico faço desta maneira: chart1.Series(0).ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie e penso que a legenda é algo deste género mas não sei como... 😞
nelsonr Posted August 19, 2013 at 09:31 PM Report #522140 Posted August 19, 2013 at 09:31 PM (edited) Boas, algo deste tipo? Dim elementos() As Integer = {30, 2, 50, 55, 23, 10} Chart1.Series.Clear() Chart1.Series.Add("teste") Chart1.Series("teste").ChartType = DataVisualization.Charting.SeriesChartType.Pie For elemento As Integer = 0 To elementos.Length-1 Chart1.Series("teste").Points.AddY(elementos(elemento)) Chart1.Series("teste").Points(elemento).AxisLabel = elementos(elemento) Next Edited August 19, 2013 at 09:32 PM by nelsonr
RitaAndrade Posted August 19, 2013 at 09:38 PM Author Report #522141 Posted August 19, 2013 at 09:38 PM resolvi 😄 chart.Series(0).IsVisibleInLegend = True
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now