2012-01-25 5 views
0

こんにちは、私はMSChartを持っていて、シリーズに重複しているところにある矢印を正確に持っています。私は少なくとも彼らと何かを知りたいと思っています。私のmsチャートの矢印は何ですか

チャートは二つの方法で生成されます。

private void DesignChart() 
     { 
      // Create Chart Area 
      ChartArea chartArea1 = new ChartArea(); 

      // Add Chart Area to the Chart 
      chart1.ChartAreas.Add(chartArea1); 
      chart1.Legends.Add(new Legend()); 
     //  chart1.ChartAreas[0].AxisX.LabelStyle.Format={"00:00:00"}; 
      chart1.Location = new Point(14, 494); 
      chart1.Size = new Size(982, 224); 
      this.Controls.Add(chart1); 
      ((System.ComponentModel.ISupportInitialize)(chart1)).EndInit(); 
     } 
private void SetGraph(){ 
......... 
    for (int i = 0; i < chart1.Series.Count; i++) 
      { 

       chart1.Series[i].XValueMember = "Date"; 
       chart1.Series[i].YValueMembers = "Value"; 

       chart1.Series[i].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; 
       chart1.Series[i].XValueType = ChartValueType.Time; 
       chart1.Series[i].ChartType = SeriesChartType.Line; 

       chart1.Series[i].MarkerStyle = MarkerStyle.Star10; 
       chart1.Series[i].MarkerSize = 8; 
       chart1.Series[i].MarkerColor = chart1.Series[0].BorderColor; 
       chart1.Series[i].BorderWidth = 3; 
       chart1.Series[i].IsValueShownAsLabel = true; 
       chart1.Series[i].ToolTip = "#VALY => #AXISLABEL"; 
      } 

      chart1.ChartAreas[0].AxisX.IsMarginVisible = true; 
} 

画像リンクPhoto of the chart

おかげ

+0

グラフのスクリーンショットを追加できますか? –

+0

私は十分な投稿がありません許可されていません –

+0

@adisba:ここにスクリーンショットへのURLを投稿し、誰かがあなたのために質問を編集します。 –

答えて

0

は、それが「矢」は、実際にこの行の結果であることは可能ですか?

私はそれが原因でこのラインの起こると信じて
chart1.Series[i].MarkerStyle = MarkerStyle.Star10; 
+0

実際にはスティーブは右の矢印が実際にはこのchart1.Seriesの結果です。[i] .MarkerStyle = MarkerStyle。 Star10;もし私がマーカースタイルを入れたら、とにかく矢印を持ってそれらを取り除くのですか? –

1

chart1.Series[i].IsValueShownAsLabel = true; 

データポイントが重複/近接している場合は、チャートコントロールを使用すると、取得しないように、基準点を指すように矢印を使用しています混乱している - そういうもの。この行をfalseに設定して、矢印が消えるかどうか確認してください。矢印表示を無効にする方法が他にあるかどうかはわかりません。

関連する問題