0

如何在 VB的Microsoft 图表控件中更改标签的颜色(不确定正确的名称是什么) 。

“标签”是指覆盖在StackedColumn图表中每一列上的文本。

您可以使用以下内容更改轴标签:

<AxisY LineColor="Red">
      <LabelStyle ForeColor="Red" />
</AxisY>
<AxisX LineColor="Red">
       <LabelStyle ForeColor="Red" />
</AxisX>

定位标签的等价物是什么?

4

1 回答 1

0

LabelForeColor property of Datapoint should work

<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>   
于 2012-03-23T14:39:14.487 回答