My current charts will error out if there is no data. I guess the EmptyChartText property means nothing.
I would like to hide the chart when it errors out. Is there an event or something that I can check?
What is the purpose of EmptyChartText if it never displays?
FYI: the error is about requiring at least one row...
EmptyChartText is displayed when the data source hasn't been assigned to the chart.
You can handle InvalidDataReceived event, which fires when the chart has been bound to invalid data (wrong data or no data at all, but the datasource has been set)
I tried the following, without success:___________________________________ Protected Sub cht2Small_InvalidDataReceived(ByVal sender As Object, ByVal e As Infragistics.UltraChart.Shared.Events.ChartDataInvalidEventArgs) Handles Cht2Small.InvalidDataReceivedMe.Cht2Small.DataSource = Nothing Me.Cht2Small.DataBind() End Sub___________________________________
I had thought that if I detected invalid data, I could set the datasource to nothing and then the EmptyChartText would display. Unfortunately, it had no effect. I also tried to set the chart's Visible Property to false, but that had no effect either.
Any suggestions?