Regarding Series Color and Gradient Color
Posted: Tue Mar 23, 2010 4:48 am
Hi,
we are trying to apply series color and gradient color in tChart Activex but we are not able to do that...
we have used javascrpt as scrptiong language and c# as server coding.
here is my sample.
aspnetForm.TChart1.Aspect.View3D = false;
aspnetForm.TChart1.Walls.Visible = true;
aspnetForm.TChart1.Panel.Gradient.Visible = true;
aspnetForm.TChart1.Panel.Gradient.StartColor = 4294951115;
aspnetForm.TChart1.Panel.Gradient.MidColor = 4294951115;
aspnetForm.TChart1.Panel.Gradient.EndColor = 4294951115;
aspnetForm.TChart1.Legend.Color = 4294309365;
var Colorarr = new Array();
Colorarr[0] = 4294309365;
Colorarr[1] = 4294951115;
Colorarr[2] = 4294967040;
Colorarr[3] = 4294902015;
Colorarr[4] = 4293821166;
Colorarr[5] = 4278222848;
Colorarr[6] = 4294956800;
Colorarr[7] = 4293982463;
Colorarr[8] = 4278190219;
var k;
for (k = 0; k < aspnetForm.TChart1.SeriesCount; k++)
{
aspnetForm.TChart1.Series(k).Active = true;
aspnetForm.TChart1.Series(k).Color = 4278190219;
aspnetForm.TChart1.Series(k).asFastLine.DrawAllPoints = true;
aspnetForm.TChart1.Series(k).asFastLine.FastPen = true;
aspnetForm.TChart1.Series(k).asFastLine.LinePen.Color = 4278190219;
aspnetForm.TChart1.Series(k).asFastLine.LinePen.Width = 2;
aspnetForm.TChart1.Series(k).ColorEachPoint = true;
}
we have used this aspnetForm because our chart page is in container of masterpage. and aspnetForm is our Master page Form tag.
please let me know if i am wrong anywhere.
and please let me know if any other alternative to do the same.
Thanks in Advance.
BNF Tech INC.
we are trying to apply series color and gradient color in tChart Activex but we are not able to do that...
we have used javascrpt as scrptiong language and c# as server coding.
here is my sample.
aspnetForm.TChart1.Aspect.View3D = false;
aspnetForm.TChart1.Walls.Visible = true;
aspnetForm.TChart1.Panel.Gradient.Visible = true;
aspnetForm.TChart1.Panel.Gradient.StartColor = 4294951115;
aspnetForm.TChart1.Panel.Gradient.MidColor = 4294951115;
aspnetForm.TChart1.Panel.Gradient.EndColor = 4294951115;
aspnetForm.TChart1.Legend.Color = 4294309365;
var Colorarr = new Array();
Colorarr[0] = 4294309365;
Colorarr[1] = 4294951115;
Colorarr[2] = 4294967040;
Colorarr[3] = 4294902015;
Colorarr[4] = 4293821166;
Colorarr[5] = 4278222848;
Colorarr[6] = 4294956800;
Colorarr[7] = 4293982463;
Colorarr[8] = 4278190219;
var k;
for (k = 0; k < aspnetForm.TChart1.SeriesCount; k++)
{
aspnetForm.TChart1.Series(k).Active = true;
aspnetForm.TChart1.Series(k).Color = 4278190219;
aspnetForm.TChart1.Series(k).asFastLine.DrawAllPoints = true;
aspnetForm.TChart1.Series(k).asFastLine.FastPen = true;
aspnetForm.TChart1.Series(k).asFastLine.LinePen.Color = 4278190219;
aspnetForm.TChart1.Series(k).asFastLine.LinePen.Width = 2;
aspnetForm.TChart1.Series(k).ColorEachPoint = true;
}
we have used this aspnetForm because our chart page is in container of masterpage. and aspnetForm is our Master page Form tag.
please let me know if i am wrong anywhere.
and please let me know if any other alternative to do the same.
Thanks in Advance.
BNF Tech INC.