UltraChart of Infragistics 如何才能做得更好?
我需要说服我的管理层,我们可以使用基础设施制作非常漂亮的绘图,直到知道这就是我所拥有的:
为了让这是我的代码:
//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);
我想知道如何:
- 减少标记大小
- 有整个日期(不被截断)
- 更改标签字体
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Infragistics 已经在努力宣传他们的图表,所以为什么不重用 他们的营销材料 ?
Infragistics is already trying quite hard to advertise their charts, so why don't you just reuse their marketing material ?
在浏览了一些官方 2011.2 infragistics 帮助后,我发现了一些问题适合您:
IconSize 属性
(自动、大、中、小)this.ultraChart1.TitleTop.Font = new Font("Arial", 12, FontStyle.Bold | FontStyle.Underline, GraphicsUnit.Point);
如果标签是“我的文本”并且日期是 5/10/2005,则标签格式如下:
“” = MyText 2005 年 5 月 10 日
希望有所帮助
After a few looking through the official 2011.2 infragistics help i found some issues for you:
IconSize Property
(Auto, Large, Medium, Small)this.ultraChart1.TitleTop.Font = new Font("Arial", 12, FontStyle.Bold | FontStyle.Underline, GraphicsUnit.Point);
If the label is "My Text" and the Date is 5/10/2005 it would format the label as follows:
"<ITEM_LABEL><DATA_VALUE:MMM-dd-yyyy>" = MyText May 10, 2005
hope that helps