0

我正在使用 Visual Studio 2010 和 Syncfusion Essential Studio 10.2.0.56。

我想在同步融合基本图表中的高低开闭图表类型中将开闭符号的形状从水平线更改为圆形。

有人可以帮助我实现这一目标吗????我想最终得到这种图表

在此处输入图像描述 谢谢

4

1 回答 1

0

您可以通过 Hilo 和 Scatter 类型图表的组合来实现此要求。请根据您的要求在 Hilo 和散点图类型中设置所需的符号。请参考下面的代码片段来实现这一点,

    [C#]
    // chart series for Hilo.            
        ChartSeries series1 = new ChartSeries("Series 1", ChartSeriesType.HiLo);
         series1.Points.Add(1, new double[] { 8, 3 });
        series1.Points.Add(2, new double[] { 10, 2 });
        series1.Points.Add(3, new double[] { 16, 2 });
        series1.Points.Add(4, new double[] { 7, 3 });
        series1.Points.Add(5, new double[] { 12, 3 });
        this.chartControl1.Series.Add(series1);
        // symbol for Hilo chart type
        series1.Style.Symbol.Shape = ChartSymbolShape.HorizLine;
        series1.Style.Symbol.Color = Color.CadetBlue;
        series1.Style.Interior = new BrushInfo(Color.Black);


          // chart series for scatter.            
        ChartSeries series2 = new ChartSeries("Series 2", ChartSeriesType.Scatter);
        for (int i = 0; i < 5; i++)
            series2.Points.Add(i+1, (series1.Points[i].YValues[0] + series1.Points[i].YValues[1]) / 2);
        this.chartControl1.Series.Add(series2);
          // symbol for scatter chart type
        series2.Style.Interior = new BrushInfo(Color.LightGreen);
        series2.ZOrder = 0;

          // chart series for scatter.            
        ChartSeries series3 = new ChartSeries("Series 3", ChartSeriesType.Scatter);
         for (int i = 0; i < 5; i++)
            series3.Points.Add(i + 1, (series1.Points[i].YValues[1]));
        this.chartControl1.Series.Add(series3);
       // symbol for scatter chart type
        series3.Style.Symbol.Shape = ChartSymbolShape.HorizLine;
        series3.Style.Symbol.Color = Color.Red;

问候,

M·巴拉吉

于 2012-08-06T09:04:36.233 回答