有没有用过Visifir的Chart控件的!求助!

无常名 2012-10-18 10:24:00


怎样更改图中红色区域的字体字号啊????
...全文
176 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
无常名 2012-10-19
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 的回复:]

XML code

<my:Chart.AxesX>
<my:Axis Title="类型" FontFamily="Arial,SimSun" FontSize="20">
<my:Axis.AxisLabels>
<my:AxisLabel……
[/Quote]

我知道了,是TitleFontFamily和TitleFontSize。那个在线设计器可以看xml,刚才没看到,谢谢!结贴!
无常名 2012-10-19
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 的回复:]

在线的设计器都有这些 我记不清了 自己多试试
[/Quote]

嗯,这个东西确实很好,非常感谢你!
无常名 2012-10-19
  • 打赏
  • 举报
回复

<my:Chart.AxesX>
<my:Axis Title="类型" FontFamily="Arial,SimSun" FontSize="20">
<my:Axis.AxisLabels>
<my:AxisLabels FontSize="20"></my:AxisLabels>
</my:Axis.AxisLabels>
</my:Axis>
</my:Chart.AxesX>


给Title加字体字号提示错误呢?

属性“FontFamily’不存在“轴心”类型的XML名称空间的clr名称空间:Visifire.Charts;装配= SLVisifire.Charts”。
在路上20130607 2012-10-19
  • 打赏
  • 举报
回复
在线的设计器都有这些 我记不清了 自己多试试
在路上20130607 2012-10-19
  • 打赏
  • 举报
回复
<vc:Axis Title="Companies" >
<vc:Axis.AxisLabels>
<vc:AxisLabels FontColor="red" FontFamily="Trebuchet MS" FontStyle="Italic" FontWeight="Black" />
</vc:Axis.AxisLabels>
</vc:Axis>
无常名 2012-10-19
  • 打赏
  • 举报
回复
比如:

<Style x:Key="DPStyle" TargetType="my:DataPoint">
<Setter Property="FontSize" Value="20"></Setter>
<Setter Property="LabelFontFamily" Value="Arial,SimSun"></Setter>
<Setter Property="LabelFontSize" Value="20"></Setter>
</Style>
无常名 2012-10-19
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 的回复:]

每一个point 都有自己的label
[/Quote]


DServies.DataPoints.Clear();
DataPoint dp1 = new DataPoint() { AxisXLabel = "第一季", YValue = info1.OrderTotal };
dp1.Style = Application.Current.Resources["DPStyle"] as Style;

DataPoint dp2 = new DataPoint() { AxisXLabel = "第二季", YValue = info1.OrderPass };
dp2.Style = Application.Current.Resources["DPStyle"] as Style;
DataPoint dp3 = new DataPoint() { AxisXLabel = "第三季", YValue = info1.OrderReject };
dp3.Style = Application.Current.Resources["DPStyle"] as Style;
DServies.DataPoints.Add(dp1);
DServies.DataPoints.Add(dp2);
DServies.DataPoints.Add(dp3);
DServies.Style = Application.Current.Resources["DSStyle"] as Style;

chart1.Series.Add(DServies);


我是这样添加的,DataPoint 的样式该怎么写呢?
在路上20130607 2012-10-19
  • 打赏
  • 举报
回复
每一个point 都有自己的label
无常名 2012-10-19
  • 打赏
  • 举报
回复
可是AxisLabels 该怎样设置呢?
在路上20130607 2012-10-19
  • 打赏
  • 举报
回复
<vc:Chart.AxesY>
<vc:Axis Title="次数" TitleFontColor="#FF54E3" TitleFontFamily="Courier New" AxisType="Primary" />
</vc:Chart.AxesY>
在路上20130607 2012-10-19
  • 打赏
  • 举报
回复
第一季 属于AxisLabels
次数 属于 y轴的title
这事 visifire的在线设计器 你可以看看 api写的很清楚
http://www.visifire.com/silverlight_wpf_charts_gauges_designer.php?id=vc
无常名 2012-10-19
  • 打赏
  • 举报
回复
没有人知道吗??

8,731

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧