AJUDA COM CHART
Pessoal nunca trabalhei com Chart, nem sei como funciona, entao estou a procura de como fazer um chart tenhos esta unidades e suas respectivas porcentagem, mais sempre que exibo o chart fica somente de uma cor dificil de saber qual e qual unidade...O que estou fazendo de errado..
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]BARRAGEM[Ô], 10)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]COLONIA[Ô], 20)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]DON LUCIANO BERGAMIM[Ô], 30)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM CAMPINAS[Ô], 40)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM DAS FONTES[Ô], lblbarragem3.Text)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM EMBURA[Ô], 60)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM IPORA[Ô], 70)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM SANTA FE[Ô], 80)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM SAO NORBERTO[Ô], 90)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]COLONIA[Ô], 100)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM SILVEIRA[Ô], 95)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]MARSILAC[Ô], 85)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]RECANTO CAMPO BELO[Ô], 75)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VARGEM GRANDE[Ô], 65)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VERA POTY[Ô], 55)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VILA MARCELO[Ô], 45)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VILA ROSCHEL[Ô], 35)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]BARRAGEM[Ô], 10)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]COLONIA[Ô], 20)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]DON LUCIANO BERGAMIM[Ô], 30)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM CAMPINAS[Ô], 40)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM DAS FONTES[Ô], lblbarragem3.Text)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM EMBURA[Ô], 60)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM IPORA[Ô], 70)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM SANTA FE[Ô], 80)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM SAO NORBERTO[Ô], 90)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]COLONIA[Ô], 100)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]JARDIM SILVEIRA[Ô], 95)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]MARSILAC[Ô], 85)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]RECANTO CAMPO BELO[Ô], 75)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VARGEM GRANDE[Ô], 65)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VERA POTY[Ô], 55)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VILA MARCELO[Ô], 45)
Chart1.Series([Ô]Unidades[Ô]).Points.AddXY([Ô]VILA ROSCHEL[Ô], 35)
Via google,site do macoratti
omar todos que achei nao fala nada em trocar cor, colocar mais colunas e sempre a mesma com 6 colunas nenhuma ensina como ultilizar...o Chart....Por isso criei o topico...
KURTGU,
Por favor, teste:
============================================================
Samples Environments for Microsoft Chart Controls
https://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
============================================================
Line Chart - Change Color
https://social.msdn.microsoft.com/Forums/vstudio/en-US/674ef135-d808-43fa-a10a-34df0228f2df/line-chart-change-color
============================================================
How Do I Assign Individual Colors to Bars in VB.NET Chart?
http://www.vbforums.com/showthread.php?750411-How-Do-I-Assign-Individual-Colors-to-Bars-in-VB-NET-Chart
Dim rng As New Random
For p As Integer = 1 To 10
Dim thisPoint As DataVisualization.Charting.DataPoint
thisPoint = Chart1.Series(0).Points.Add(rng.Next(5) + 5)
Dim someRandomColour As Color = Color.FromArgb(rng.Next(256), rng.Next(256), rng.Next(256))
thisPoint.Color = someRandomColour
Next
============================================================
Veja também:
============================================================
VB.NET Color Names
http://condor.depaul.edu/sjost/it236/documents/colorNames.htm
============================================================
Setting Microsoft Chart Series Colors
http://blogs.msdn.com/b/alexgor/archive/2009/10/06/setting-chart-series-colors.aspx
============================================================
how do you change the text color in a vb.net chart?
http://stackoverflow.com/questions/22455278/how-do-you-change-the-text-color-in-a-vb-net-chart
============================================================
[][ô]s,
Tunusat.
Por favor, teste:
============================================================
Samples Environments for Microsoft Chart Controls
https://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
============================================================
Line Chart - Change Color
https://social.msdn.microsoft.com/Forums/vstudio/en-US/674ef135-d808-43fa-a10a-34df0228f2df/line-chart-change-color
For i As Integer = 0 To 2
Chart1.Series(0).Points(i).Color = Color.Red
Chart1.Series(0).Points(i).BorderWidth = 4
Next
For i As Integer = 3 To 4
Chart1.Series(0).Points(i).Color = Color.Green
Chart1.Series(0).Points(i).BorderDashStyle = DataVisualization.Charting.ChartDashStyle.Dash
Chart1.Series(0).Points(i).BorderWidth = 4
Next
with chart1.Series(0)
.ChartType = SeriesChartType.Line
.MarkerStyle = MarkerStyle.Circle
.MarkerSize = 3
.MarkerColor = Color.FromArgb(181, 201, 205)
.MarkerBorderColor = Color.FromArgb(139, 162, 178)
.Color = Color.FromArgb(139, 162, 178)
end with
============================================================
How Do I Assign Individual Colors to Bars in VB.NET Chart?
http://www.vbforums.com/showthread.php?750411-How-Do-I-Assign-Individual-Colors-to-Bars-in-VB-NET-Chart
Dim rng As New Random
For p As Integer = 1 To 10
Dim thisPoint As DataVisualization.Charting.DataPoint
thisPoint = Chart1.Series(0).Points.Add(rng.Next(5) + 5)
Dim someRandomColour As Color = Color.FromArgb(rng.Next(256), rng.Next(256), rng.Next(256))
thisPoint.Color = someRandomColour
Next
============================================================
Veja também:
============================================================
VB.NET Color Names
http://condor.depaul.edu/sjost/it236/documents/colorNames.htm
============================================================
Setting Microsoft Chart Series Colors
http://blogs.msdn.com/b/alexgor/archive/2009/10/06/setting-chart-series-colors.aspx
// Set chart custom palette
Chart.Palette = ChartColorPalette.None;
Chart.PaletteCustomColors = new Color[] { Color.Red, Color.Blue, Color.Yellow};
// Hide all series empty data point by making them transparent
Chart.Series[0].EmptyPointStyle.Color = Color.Transparent;
// Set color for the whole series
Chart.Series[0].Color = Color.Green;
// Set color of a single data point
Chart.Series[0].Points[5].Color = Color.Red;
============================================================
how do you change the text color in a vb.net chart?
http://stackoverflow.com/questions/22455278/how-do-you-change-the-text-color-in-a-vb-net-chart
chart1.Series([Ô]Chart_1[Ô]).Points(0).LabelForeColor = Color.Yellow
============================================================
[][ô]s,
Tunusat.
Tunusat ele somente exibe os 4 primeiros
Tópico encerrado , respostas não são mais permitidas