void WebChartControl1_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { ((PieDrawOptions)e.SeriesDrawOptions).FillStyle.FillMode = FillMode.Solid; ((PieDrawOptions)e.LegendDrawOptions).FillStyle.FillMode = FillMode.Solid; ((PieDrawOptions)e.SeriesDrawOptions).Color = Color.FromName(e.SeriesPoint.Argument); ((PieDrawOptions)e.LegendDrawOptions).Color = Color.FromName(e.SeriesPoint.Argument); }
private void chartControl1_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { if (e.SeriesPoint == selectedSeriesPoint) { e.SeriesDrawOptions.Color = Color.Red; } }
protected void StatusWebChart_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { Pie3DDrawOptions drawOptions = e.SeriesDrawOptions as Pie3DDrawOptions; Pie3DDrawOptions legendOptions = e.LegendDrawOptions as Pie3DDrawOptions; drawOptions.FillStyle.FillMode = FillMode3D.Solid; legendOptions.FillStyle.FillMode = FillMode3D.Solid; if (e.SeriesPoint.Argument == "OK") { drawOptions.Color = System.Drawing.Color.FromArgb(0, 128, 0); legendOptions.Color = System.Drawing.Color.FromArgb(0, 128, 0); } else if (e.SeriesPoint.Argument == "Issue") { drawOptions.Color = System.Drawing.Color.FromArgb(242, 242, 0); legendOptions.Color = System.Drawing.Color.FromArgb(242, 242, 0); } else if (e.SeriesPoint.Argument == "Not Responding") { drawOptions.Color = System.Drawing.Color.FromArgb(253, 0, 0); legendOptions.Color = System.Drawing.Color.FromArgb(253, 0, 0); } else if (e.SeriesPoint.Argument == "Maintenance") { drawOptions.Color = System.Drawing.Color.FromArgb(80, 80, 80); legendOptions.Color = System.Drawing.Color.FromArgb(80, 80, 80); } }
private void chartControl1_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { // double[] val = e.SeriesPoint.Values; // e.SeriesP /* * BarDrawOptions drawOptions = e.SeriesDrawOptions as BarDrawOptions; * if (drawOptions == null) * return; * * if (val > 17) * { * drawOptions.Color = Color.Red; * } * else if (val > 2) * { * drawOptions.Color = Color.Yellow; * } * else * { * drawOptions.Color = Color.Green; * } * drawOptions.FillStyle.FillMode = FillMode.Solid; */ }
private void chartControl1_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { BarDrawOptions drawOptions = e.SeriesDrawOptions as BarDrawOptions; if (drawOptions == null) { return; } double val = e.SeriesPoint[0]; if (val < 100) { drawOptions.Color = Color.Red; } else { drawOptions.Color = Color.LimeGreen; } }
protected void strongpasswordWebChart_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { //Pie3DDrawOptions drawOptions = e.SeriesDrawOptions as Pie3DDrawOptions; //Pie3DDrawOptions legendOptions = e.LegendDrawOptions as Pie3DDrawOptions; //drawOptions.FillStyle.FillMode = FillMode3D.Solid; //legendOptions.FillStyle.FillMode = FillMode3D.Solid; //((Pie3DDrawOptions)e.SeriesDrawOptions).FillStyle.FillMode = FillMode3D.Solid; if (e.SeriesPoint.Argument == "Strong Password Required: True") { e.SeriesDrawOptions.Color = System.Drawing.Color.FromArgb(0, 255, 0); //green e.SeriesDrawOptions.Color = System.Drawing.Color.Lime; //green //legendOptions.Color = System.Drawing.Color.FromArgb(0, 128, 0); } else if (e.SeriesPoint.Argument == "Strong Password Required: False") { //e.SeriesDrawOptions.Color = System.Drawing.Color.FromArgb(253, 0, 0);red e.SeriesDrawOptions.Color = System.Drawing.Color.FromArgb(255, 0, 0); //red e.SeriesDrawOptions.Color = System.Drawing.Color.Red; //legendOptions.Color = System.Drawing.Color.FromArgb(253, 0, 0); } }
private void chartControl1_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { }
private void Chart_CustomDrawSeriesPoint(object sender, DevExpress.XtraCharts.CustomDrawSeriesPointEventArgs e) { e.LegendText = e.LegendText + ": " + e.SeriesPoint.Values[0].ToString(); //e.LegendText = e.LabelText; }