【问题标题】:Change font colour in Microsoft Chart Control在 Microsoft 图表控件中更改字体颜色
【发布时间】:2012-03-23 12:43:11
【问题描述】:
如何在 VB 中更改 Microsoft Chart Control 中标签的颜色(不确定正确的名称)。
“标签”是指覆盖在StackedColumn 图表中每一列上的文本。
您可以使用以下内容更改轴标签:
<AxisY LineColor="Red">
<LabelStyle ForeColor="Red" />
</AxisY>
<AxisX LineColor="Red">
<LabelStyle ForeColor="Red" />
</AxisX>
定位标签的等价物是什么?
【问题讨论】:
标签:
asp.net
vb.net
microsoft-chart-controls
【解决方案1】:
Datapoint 的 LabelForeColor 属性应该可以工作
<asp:Series Name="Default" BorderColor="180, 26, 59, 105" ChartType="StackedColumn" >
<Points>
<asp:DataPoint XValue="1" YValues="10" LabelForeColor ="Black" Label="123" />
</Points>
</asp:Series>
<asp:Series Name="Default1" BorderColor="180, 26, 59, 105" ChartType="StackedColumn" >
<Points>
<asp:DataPoint XValue="1" YValues="10" LabelForeColor ="Black" Label="123" />
</Points>
</asp:Series>