Set Individual Colors on Bar Chart...
Posted: Tue Jan 24, 2006 9:54 pm
I want to set individual colors on a bar chart, but I can't seem to find how. If I convert the bar chart into a pie chart, the chart automatically gets different colors. But it's defaulted to RED on a bar chart.
Can anybody point me in the right direction?
private void seriesHotSpot1_GetHTMLMap(Steema.TeeChart.Tools.SeriesHotspot sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
{
String strDateFrom = txtDate1.Text.ToString();
String strDateTo = txtDate2.Text.ToString();
String strXaxis = Request["xaxis"].ToString();
String strYaxis = Request["yaxis"].ToString();
String strPath = System.Configuration.ConfigurationSettings.AppSettings.Get("Web.Path");
String strLabel = "";
strLabel = e.Series.Labels[e.PointPolygon.ValueIndex];
e.PointPolygon.Title = strLabel;
e.PointPolygon.HREF = strPath + "listview.jsp?Ver=1&Side=Left&X=" + strXaxis + "&Y=" + strYaxis + "&DateFrom=" + strDateFrom + "&DateTo=" + strDateTo + "&Value=" + strLabel;
e.PointPolygon.Attributes = "target='bottomRightFrame'";
switch(e.PointPolygon.ValueIndex)
{
case 0:
//Set Bar color AND legend to BLUE break;
case 1:
//Set Bar color AND legend to RED break;
case 2:
break;
case 3:
break;
case 4:
break;
default:
break;
}
}
Can anybody point me in the right direction?
private void seriesHotSpot1_GetHTMLMap(Steema.TeeChart.Tools.SeriesHotspot sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
{
String strDateFrom = txtDate1.Text.ToString();
String strDateTo = txtDate2.Text.ToString();
String strXaxis = Request["xaxis"].ToString();
String strYaxis = Request["yaxis"].ToString();
String strPath = System.Configuration.ConfigurationSettings.AppSettings.Get("Web.Path");
String strLabel = "";
strLabel = e.Series.Labels[e.PointPolygon.ValueIndex];
e.PointPolygon.Title = strLabel;
e.PointPolygon.HREF = strPath + "listview.jsp?Ver=1&Side=Left&X=" + strXaxis + "&Y=" + strYaxis + "&DateFrom=" + strDateFrom + "&DateTo=" + strDateTo + "&Value=" + strLabel;
e.PointPolygon.Attributes = "target='bottomRightFrame'";
switch(e.PointPolygon.ValueIndex)
{
case 0:
//Set Bar color AND legend to BLUE break;
case 1:
//Set Bar color AND legend to RED break;
case 2:
break;
case 3:
break;
case 4:
break;
default:
break;
}
}