This is a migrated thread and some comments may be shown as answers.

RadHtmlChart receives data but does not generate the chart.

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Márcio
Top achievements
Rank 2
Márcio asked on 25 Mar 2014, 06:11 PM
We used a RadHtmlChart and its DataSource is a dataset that is populated by a method able to recover data form MS SQL Server and Oracle. Our application gives to RadHtmlChart is always a dataset.

What we are facing is the following: 

The RadHtmlChart does not display the chart when it receives the data from Oracle database. But when we test our application in debug mode, we can see that this dataset and filled RadHtmlChart is receiving data without accusing errors, but the chart is not displayed.

1 Answer, 1 is accepted

Sort by
0
Márcio
Top achievements
Rank 2
answered on 25 Mar 2014, 07:16 PM
We solved the problem. What seems the properties of RadHtmlChart like DataFieldY and PlotArea.XAxis.DataLabelsField are case sensitive. 

So we changed our code from: 

barSeries.DataFieldY = "qt_operacao_suspeita";
radHtmlChart1.PlotArea.XAxis.DataLabelsField = "periodo_movimentacao";

to: 

barSeries.DataFieldY = dataSetSum.Tables[0].Columns["qt_operacao_suspeita"].ColumnName;
radHtmlChart1.PlotArea.XAxis.DataLabelsField = dataSetSum.Tables[0].Columns["st_operacao_suspeita"].ColumnName;
Tags
General Discussions
Asked by
Márcio
Top achievements
Rank 2
Answers by
Márcio
Top achievements
Rank 2
Share this question
or