Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 向ZedGraph JapaneseCandleStick图添加标题_C#_Zedgraph - Fatal编程技术网

C# 向ZedGraph JapaneseCandleStick图添加标题

C# 向ZedGraph JapaneseCandleStick图添加标题,c#,zedgraph,C#,Zedgraph,Im为烛台创建ZedGraph C代码: GraphPane myPane = z1.GraphPane; StockPointList spl = new StockPointList(); Random rand = new Random(); XDate xDate = new XDate(2006, 2, 1, 10, 0, 0); double open = 1000.0; for (in

Im为烛台创建ZedGraph C代码:

        GraphPane myPane = z1.GraphPane;
        StockPointList spl = new StockPointList();
        Random rand = new Random();

        XDate xDate = new XDate(2006, 2, 1, 10, 0, 0);
        double open = 1000.0;
        for (int i = 0; i < 360; i++)
        {
            double x = xDate.XLDate;
            xDate.AddMinutes(1);                              
            double close = open + rand.NextDouble() * 10.0 - 5.0;
            double hi = Math.Max(open, close) + rand.NextDouble() * 5.0;
            double low = Math.Min(open, close) - rand.NextDouble() * 5.0;
            StockPt pt = new StockPt(x, hi, low, open, close, 100000);
            spl.Add(pt);
            open = close;                   
        }

        JapaneseCandleStickItem myCurve = myPane.AddJapaneseCandleStick("trades", spl);
        myCurve.Stick.IsAutoSize = true;
        myCurve.Stick.Color = Color.Blue;

        myPane.XAxis.Type = AxisType.DateAsOrdinal;
        z1.AxisChange();
烛台画,文字不在

如果im更改以下内容的文本:

      PointPairList list = new PointPairList();
      list.Add(sp.X, sp.Y, sp.Z);
      LineItem line2 = new LineItem("Point", list, Color.Black, SymbolType.Circle);
      line2.Symbol.Size = 20;
      line2.Symbol.Fill = new Fill(Color.Red);
      myPane.CurveList.Add(line2);
在50%的几率-不可见,或在左侧可见可能是烛台图形中的X轴不工作

请帮忙。。如何在烛台ZedGraph中在目标上绘制文本或圆圈

      PointPairList list = new PointPairList();
      list.Add(sp.X, sp.Y, sp.Z);
      LineItem line2 = new LineItem("Point", list, Color.Black, SymbolType.Circle);
      line2.Symbol.Size = 20;
      line2.Symbol.Fill = new Fill(Color.Red);
      myPane.CurveList.Add(line2);