Hi, I am using UltraChart - PieChart. Initially, there should not be any data in the system, so there won't be any rows in the DataTable of the UltraChart. So the PieChart is displaying the following error: Pie3D Chart Error: You must include at least one row and one numeric column. I have read the User's manual. It also mentioned similar thing.
I have included one numeric column, but no rows.
Is there a way to display empty pie chart with no rows. Thanks, Nuha
Hi Nuha,
If you don’t provide a row with at least one numeric column you will get the Data Not Available message. But I provided a row of column(s) whose value(s) were 0 and that allow the form to generate without a chart and without any error.
Let me know if there is anything else I can help you with.
Marianne
Thank you Marianne,
I am not getting the "Data not Available" message. Instead, I am getting the error message I described earlier written in red font and filling the ultrachart. The chart looks broken. So, is it a bug?
I’m just checking back if you have any follow-up questions.
Please let me know if there is anything I can help with further.
Hi Marianne,
I have attached a file with how the pie chart looks when the number of rows is zero. I believe that the "EmptyChartText" shoud appear here in a nice way. Following is the source code I am using:
DataTable dt = new DataTable();
dt.Columns.Add("Status", typeof(System.String)); dt.Columns.Add("Frequency", typeof(System.Int32));
ultraChart1.DataSource = dt; ultraChart1.Data.DataBind();
This look like a bug to me. If you have a problem opening the attachment, please let me know.
Thanks,
Nuha
Actually the message is correct; you do need to supply at least one row and one numeric column.
Here’s a link to the Overview of Chart Data Requirements.
http://help.infragistics.com/NetAdvantage/WinForms/2009.2/CLR2.0/?page=Chart_Overview_of_Chart_Data_Requirements.html
And this is the link for the Data Requirements for 3D Charts
http://help.infragistics.com/NetAdvantage/WinForms/2009.2/CLR2.0/?page=Chart_Data_Requirements_for_3D_Charts.html
If you want to modify the message when invalid data is received you can use the InvalidDataReceived event and change the e.Text.
Wondering is anything I can help you with.
Hi,I am using UltraChart - PieChart. when data is null, the PieChart is displaying the following error:Pie3D Chart Error: You must include at least one row and one numeric column.
How to change it? just like empty or other message.
Thank a lot in advance.