I'm not really sure what you are trying to achieve, but the Chart can pick the colors automatically and if you want to specify colors you need to do this manually.
Imports Infragistics.UltraChart.Data
Imports Infragistics.UltraChart.Core.Primitives
Imports Infragistics.UltraChart.Resources.Appearance
UltraChart1.DataSource = DemoTable.AllPositive()
UltraChart1.DataBind()
End Sub
Dim box As Box = TryCast(e.Primitive, Box)
If box Is Nothing Then
Return
End If
If box.DataPoint Is Nothing Then
If val > 10 AndAlso val < 50 Then
Else
End Class
You can try using ChartDrawItem Event:
this.ultraChart2.ChartDrawItem += new Infragistics.UltraChart.Shared.Events.ChartDrawItemEventHandler(ultraChart2_ChartDrawItem);
...
{
}
double val = Convert.ToDouble(box.Value);
else