When there is no data returned from the Database...the column chart throws an error.
"Column Chart Error: You must have atleast one row and one numeric column" in bright red color
How do I change this message to display something more customised?
Thanks
You can try handling InvalidDataReceived Event:
this.UltraChart1.InvalidDataReceived += new Infragistics.UltraChart.Shared.Events.ChartDataInvalidEventHandler(UltraChart1_InvalidDataReceived);
...
{
}
I've added this event handler.....
e.Text = "Data not available."
End Sub
but i'm not sure where to add
THanks
Just add to your function Handles UltraChart1.InvalidDataReceived
The code need to be:
thank u....this worked for me
e.LabelStyle.FontColor = Drawing.Color.Black
e.LabelStyle.FontSizeBestFit = New FontSize()
e.LabelStyle.FontColor = Color.Red
e.LabelStyle.Font = New Font("Arial", 10)
One more question....how can I change the font and color of the text?
Alright...great...it worked.