gpt4 book ai didi

xamarin - 如何设置sfChart DateTimeAxis标签样式的格式,使其仅包含大写单词

转载 作者:行者123 更新时间:2023-12-02 01:23:41 25 4
gpt4 key购买 nike

我正在使用SyncFusion图形。为此,我专门使用SfChart组件。在此组件中,我希望能够将日期设置为以下格式:

周一,周二,周三,周四,周五,周六,周日(这意味着只显示大写字母的日子)

为此,我在sfChart中使用了ChartAxisLabelStyle的LabelFormat属性:

<chart:DateTimeAxis.LabelStyle>
<chart:ChartAxisLabelStyle x:Name="DateAxisLabelStyle" TextColor="{StaticResource HistogramChartAxisLabelColorTheme1}">
<chart:ChartAxisLabelStyle.LabelFormat>
<OnPlatform x:TypeArguments="x:String" iOS="EEE" WinPhone="ddd" Android="EEE" />
</chart:ChartAxisLabelStyle.LabelFormat>
</chart:ChartAxisLabelStyle>
</chart:DateTimeAxis.LabelStyle>

另外,我尝试编写转换器,但没有一个没有用。

有办法克服吗?

谢谢 :)

最佳答案

请在下面的链接下找到您所需的样本,如果需要任何说明,请告诉我们。

http://www.syncfusion.com/downloads/support/directtrac/general/ze/SimpleSample-502330254

问候,

萨姆苏登K S

关于xamarin - 如何设置sfChart DateTimeAxis标签样式的格式,使其仅包含大写单词,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38431623/

25 4 0