Hi
Below code i using to create Stacked chart ,every month i display schduled ,release.Hold status ,Now i want display schduled column seperatly and need display other column release and Hold one column
Chart2.DataSource = ds;
foreach
(DataRow row
in
dt.Rows)
{
int
total = 0;
//int sch = Convert.ToInt16(ds.Tables[0].Rows[i]["SCHCNT"].ToString());
total += Convert.ToInt16(row[
"Hold"
]);
"SCHCNT"
"Released"
"Addl"
"Notreleased"
row[
"Total"
] = total;
}
// Set series members names for the X and Y values
Chart2.Series[
"Series1"
][
"PixelPointWidth"
] =
"30"
;
"Series2"
"Series3"
"Series4"
"Series5"
].XValueMember =
"PERD"
].YValueMembers =
"Series6"
Chart2.DataBind();
(System.Web.UI.DataVisualization.Charting.Series series
Chart2.Series)
(System.Web.UI.DataVisualization.Charting.DataPoint point
series.Points)
if
(point.YValues.Length > 0 && (
double
)point.YValues.GetValue(0) == 0)
point.LegendText = point.AxisLabel;
//In case you have legend
else
point.IsValueShownAsLabel =
true
(series.ToString().Trim() ==
"Series-Series1"
)
point.LabelUrl =
"DrawingStatus.aspx?mon=#VALX&flag=SCH&cprj="
+ Request.QueryString[
"cprj"
];
"Series-Series2"
"DrawingStatus.aspx?mon=#VALX&flag=NOT&cprj="
"Series-Series3"
"DrawingStatus.aspx?mon=#VALX&flag=REL&cprj="
"Series-Series4"
"DrawingStatus.aspx?mon=#VALX&flag=HOL&cprj="
"Series-Series5"
"DrawingStatus.aspx?mon=#VALX&flag=Addl&cprj="
con.Close();
con.Dispose();
catch
(Exception ex)
(con.State != ConnectionState.Closed)
// con = null;
Response.Write(ex.Message);
finally
con =
null
<
asp:Chart
ID
=
"Chart2"
runat
"server"
Height
"500px"
Palette
"None"
Width
"1000px"
SuppressExceptions
"True"
BackColor
"146, 196, 59"
>
Series
asp:Series
Name
ChartArea
"ChartArea1"
XValueType
"String"
BorderWidth
"2"
Color
"LightBlue"
IsXValueIndexed
Legend
"Legend1"
LabelToolTip
"#VALX : #VALY"
LabelForeColor
"Black"
LegendText
"Scheduled"
LabelBackColor
"#CE90D4"
Font
"Calibri, 8pt, style=Bold"
MarkerSize
"10"
MarkerStyle
"Star4"
YValuesPerPoint
"4"
ChartType
"StackedColumn"
Points
asp:DataPoint
YValues
"0,0,0,0"
BackGradientStyle
CustomProperties
"LabelStyle=Top"
IsEmpty
XValue
/>
</
EmptyPointStyle
IsValueShownAsLabel
"true"
SmartLabelStyle
CalloutLineAnchorCapStyle
"Diamond"
"Green"
"Cyan"
"Red"
"Not Released"
"Gray"
"Yellow"
"On-Hold"
"Lavender"
"Blue"
"Additional"
"Point"
"DarkBlue"
ChartAreas
asp:ChartArea
AlignmentOrientation
"All"
"255, 255, 128"
"DiagonalRight"
AxisY
ArrowStyle
InterlacedColor
"White"
IntervalType
"Number"
TextOrientation
"Rotated270"
Title
" No. of Drawings"
MaximumAutoSize
"100"
TitleFont
"Calibri, 14.25pt, style=Bold"
TitleForeColor
MajorGrid
IntervalOffset
"Auto"
LineDashStyle
"Solid"
IntervalOffsetType
Enabled
"False"
MajorTickMark
Interval
"50"
StripLines
asp:StripLine
"192, 255, 255"
LabelStyle
"Calibri, 10pt, style=Bold"
ForeColor
ScaleBreakStyle
Spacing
"2.5"
StartFromZero
"No"
AxisX
"Month"
Crossing
"Min"
"1"
IntervalAutoMode
"VariableCount"
IsLabelAutoFit
IsMarksNextToAxis
BreakLineStyle
"Wave"
"Yes"
ScaleView
Position
Size
"12"
LineWidth
"0"
Legends
asp:Legend
DockedToChartArea
"NotSet"
Docking
"Bottom"
Alignment
"Far"
Titles
<%-- <
asp:Title
Text
"Click on values for details"
"Top"
"TopRight"
></
>--%>