Hi,
I wantu display chart in WPF based on my MYSQL data.
Can anyone please help me.
Thanks in advance.
Regards,
Shwetha
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shwetha DaliPosted Jan 20, 2014, 11:59 PM
select new
{
//Get the specific Field from the datatable.
company = order.Field
product = order.Field
}).AsEnumerable().ToDictionary(k => k.company, v => v.product);
//// ((ColumnSeries)mcChart.Series[0]).ItemsSource = dic;
((ColumnSeries)mcChart.Series[0]).ItemsSource =dic;
I saw the articles,I'm able to store the data in datable and i'm converting it into key value pair.
But still i'm getting error "Value cannot be null." but there are values in 'dic'.
Thanks,
Shwetha
Mahesh ChandPosted Jan 20, 2014, 9:59 AM