RadHtmlChart receives data but does not generate the chart.

2 posts, 0 answers
  1. Márcio
    Márcio avatar
    47 posts
    Member since:
    Sep 2006

    Posted 25 Mar 2014 Link to this post

    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.
  2. Márcio
    Márcio avatar
    47 posts
    Member since:
    Sep 2006

    Posted 25 Mar 2014 in reply to Márcio Link to this post

    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;
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top