C# 基础设施超图如何做得更好?

C# 基础设施超图如何做得更好?,c#,charts,infragistics,C#,Charts,Infragistics,我需要说服我的管理层,我们可以使用基础设施进行非常好的绘图,直到我知道这就是我所拥有的: 为了实现这一点,以下是我的代码: //Set the chart titles ChartPureAlpha.TitleTop.Text = TickerName; //Set Chart legend this.ChartPureAlpha.Legend.Visible = true; this.ChartPureAlpha.Legend.Location = LegendLocation.Right

我需要说服我的管理层,我们可以使用基础设施进行非常好的绘图,直到我知道这就是我所拥有的:

为了实现这一点,以下是我的代码:

//Set the chart titles
ChartPureAlpha.TitleTop.Text = TickerName;

//Set Chart legend
this.ChartPureAlpha.Legend.Visible = true;
this.ChartPureAlpha.Legend.Location = LegendLocation.Right;
this.ChartPureAlpha.Legend.Margins.Left = 5;
this.ChartPureAlpha.Legend.Margins.Right = 10;
this.ChartPureAlpha.Legend.Margins.Top = 15;
this.ChartPureAlpha.Legend.Margins.Bottom = 90;
this.ChartPureAlpha.Legend.SpanPercentage = 15;

this.ChartPureAlpha.LineChart.TreatDateTimeAsString = false;
this.ChartPureAlpha.ChartType = ChartType.ScatterChart;
this.ChartPureAlpha.ScatterChart.ConnectWithLines = true;
//ChartPureAlpha.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
this.ChartPureAlpha.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:dd-MM-yyyy>";
this.ChartPureAlpha.Axis.X.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 25);
this.ChartPureAlpha.Axis.X.Labels.SeriesLabels.Visible = true;
this.ChartPureAlpha.Axis.X.Labels.SeriesLabels.OrientationAngle = 315;

//ChartPureAlpha.Axis.X.TickmarkInterval = 1;
//ChartPureAlpha.Axis.X.TickmarkIntervalType = AxisIntervalType.Days;
//ChartPureAlpha.Axis.X.TickmarkStyle = AxisTickStyle.DataInterval;
// axis label
//ChartPureAlpha.TitleBottom.Text = "Date";
//ChartPureAlpha.TitleBottom.HorizontalAlign = StringAlignment.Center;
//ChartPureAlpha.TitleLeft.Text = "Raw Alpha)";
//ChartPureAlpha.TitleLeft.HorizontalAlign = StringAlignment.Center;

// Create and add series
ChartPureAlpha.Series.Add(dowjones);
//设置图表标题
ChartPureAlpha.TitleTop.Text=TickerName;
//集合图表图例
this.ChartPureAlpha.Legend.Visible=true;
this.ChartPureAlpha.Legend.Location=LegendLocation.Right;
this.ChartPureAlpha.Legend.Margins.Left=5;
this.ChartPureAlpha.Legend.Margins.Right=10;
this.ChartPureAlpha.Legend.Margins.Top=15;
this.ChartPureAlpha.Legend.Margins.Bottom=90;
this.ChartPureAlpha.Legend.SpanPercentage=15;
this.ChartPureAlpha.LineChart.TreatDateTimeAsString=false;
this.ChartPureAlpha.ChartType=ChartType.ScatterChart;
this.ChartPureAlpha.ScatterChart.ConnectWithLines=true;
//ChartPureAlpha.SmoothingMode=System.Drawing.Drawing2D.SmoothingMode.HighQuality;
this.ChartPureAlpha.Axis.X.Labels.ItemFormatString=“”;
this.ChartPureAlpha.Axis.X.Labels.SeriesLabels.Font=新系统.Drawing.Font(“Verdana”,25);
this.ChartPureAlpha.Axis.X.Labels.SeriesLabels.Visible=true;
this.ChartPureAlpha.Axis.X.Labels.SeriesLabels.OrientationAngle=315;
//ChartPureAlpha.Axis.X.TickmarkInterval=1;
//ChartPureAlpha.Axis.X.TickmarkIntervalType=AxisIntervalType.Days;
//ChartPureAlpha.Axis.X.TickmarkStyle=AxisTickStyle.DataInterval;
//轴标签
//ChartPureAlpha.TitleBottom.Text=“日期”;
//ChartPureAlpha.TitleBottom.HorizontalAlign=StringAlignment.Center;
//ChartPureAlpha.TitleLeft.Text=“原始Alpha)”;
//ChartPureAlpha.TitleLeft.HorizontalAlign=StringAlignment.Center;
//创建和添加系列
ChartPureAlpha.Series.Add(道琼斯);
我想知道如何:

  • 减少标记大小
  • 有完整的日期(不截断)
  • 更改标签字体

在浏览了一些2011.2官方版本后,我发现了一些问题:

  • 减小标记大小:使用
    IconSize属性
    (自动、大、中、小)
  • 更改标签字体:
    this.ultraChart1.TitleTop.font=新字体(“Arial”,12,FontStyle.Bold | FontStyle.Underline,GraphicsUnit.Point)
  • 有完整的日期(未截断):
    如果标签是“我的文本”,日期是2005年5月10日,则标签的格式如下:
    “”=我的文本2005年5月10日

希望这有帮助

在浏览了一些2011.2官方版本后,我发现了一些问题:

  • 减小标记大小:使用
    IconSize属性
    (自动、大、中、小)
  • 更改标签字体:
    this.ultraChart1.TitleTop.font=新字体(“Arial”,12,FontStyle.Bold | FontStyle.Underline,GraphicsUnit.Point)
  • 有完整的日期(未截断):
    如果标签是“我的文本”,日期是2005年5月10日,则标签的格式如下:
    “”=我的文本2005年5月10日

希望对你有所帮助。

基础设施已经在努力宣传他们的图表,那么你为什么不重复使用呢?

基础设施已经在努力宣传他们的图表,那么你为什么不重复使用呢?

不,你需要知道有一种叫做“文档”的东西(在字典中查找这个术语)“你可以”读“。所有这些都是完全文档化的。或者你可能需要另一份工作-一份不涉及编程的工作?投票结束-这是一个家庭作业级别的问题。不,你需要知道有一种叫做“文档”(在字典中查找术语)的东西你可以”读“。所有这些都被完全记录下来了。或者你可能需要另一份工作——一份不涉及编程的工作?投票决定结束——这是一个家庭作业级别的问题。