Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Draw column series chart from a dataTable #810

Open
vinicius121 opened this issue Jun 21, 2018 · 0 comments
Open

Draw column series chart from a dataTable #810

vinicius121 opened this issue Jun 21, 2018 · 0 comments

Comments

@vinicius121
Copy link

vinicius121 commented Jun 21, 2018

Hi there,

I'm trying to draw a column series chart from a DataTable. The table is presented below.
image

I would like to plot a chart with the number of right, wrong and no answer (example below) per session.

image

I tried to do the following:

SeriesCollectionBar = new SeriesCollection();

foreach (DataColumn column in performanceTable.Columns)
{
SeriesCollectionBar.Add(new ColumnSeries
{
Title = column.ColumnName,
Values = new ChartValues { 10, 50, 39, 50, 10, 70 }

});

}
But with no success.

I got the following:
image

Any help?
Thanks.

Live-Charts version *0.9.7*
.NET version *4.6*
Windows *10*
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant