Chamuanza Posted May 10, 2009 at 08:41 PM Report #262889 Posted May 10, 2009 at 08:41 PM Oi pessoal :(Como é que coloco valores de duas label num grafico via código de modo a quando abrir o form o grafico apresentar duas colunas com os valores prentendidos Obrigado pela atenção
Luis Marques Posted May 11, 2009 at 12:04 AM Report #262928 Posted May 11, 2009 at 12:04 AM dá uma vista de olhos aqui: http://www.portugal-a-programar.pt/index.php?showtopic=26928 LM
Chamuanza Posted May 11, 2009 at 07:02 PM Author Report #263095 Posted May 11, 2009 at 07:02 PM Oi Obrigado pela dica Aproveitei parte do codigo que tentei adaptar ' Create a Chart Chart1 = New Chart() ' Create Chart Area Dim chartArea1 As New ChartArea() ' Add Chart Area to the Chart 'Chart1.ChartAreas.Add(chartArea1) Chart1.ChartAreas.Add(chartArea1) ' Create a data series Dim series1 As New Series() Dim series2 As New Series() ' Add data points to the first series series1.Points.Add(Label1.Text) ' Add data points to the second series series2.Points.Add(Label2.Text) ' Add series to the chart Chart1.Series.Add(series1) Chart1.Series.Add(series2) ' Set chart control location Chart1.Location = New System.Drawing.Point(90, 150) ' Set Chart control size Chart1.Size = New System.Drawing.Size(120, 90) ' Add chart control to the form Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Chart1}) mas aparece-me um grafico com os dados introduzidos nas costas do controlo grafico que tenho na form, e o controlo grafico que coloquei no form aparece em branco [/img]C:\Documents and Settings\Utilizador\My Documents\My Pictures\Grafico[/img]
Chamuanza Posted May 11, 2009 at 07:12 PM Author Report #263107 Posted May 11, 2009 at 07:12 PM Coloquei mal a imagem que queria enviar http://img516.imageshack.us/img516/5484/grafico.gif aqui vai para perceberem e darem uma dica de como hei-de fazer para aparecer os dados no controle que coloquei no form.
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