Jump to content

Recommended Posts

Posted

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]

Posted

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.

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.