Create line chart windows form

Asked

Viewed 1,587 times

1

Hello, I need to create graphics in windows form of dynamic forms, this working correctly, however I would like the graph to be of line, and this generating of bars, anyone could help me? Code:

  private void FrmGrafico_Load(object sender, EventArgs e)
    {
        GraficoDS.LinhaRolosDataTable dt = new GraficoDS.LinhaRolosDataTable();
        LinhaRolosTableAdapter ta = new LinhaRolosTableAdapter();

        ta.Fill(dt, IDLinhaRolos);
        chartGrafico.DataBindTable(dt);
    }

Graphics generated: inserir a descrição da imagem aqui

  • What kind of chartGrafico?

  • is one of the components of windows form, Chart.

2 answers

0


0

This control is done by grade graph, because there may be more than one type for different series, ie can mix column chart with row chart.

You can access these properties at runtime or design time.

In Design Time just change the chart type in the series properties. See image below:

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.