Oracle Apex 图表:更改标签颜色

Oracle Apex Chart: change label color

我正在尝试更改我的(任意)图表的一个标签(在 x 轴上)的颜色。我不知道这是否可行,但我尝试通过创建样式并将它们分配给各个标签来使用 costum XML 选项来实现。但是,这对我来说没有用(可能是因为我做错了)。在下面,你可以找到当前的自定义XML(没有我尝试的问题),我希望你能帮助我解决这些问题:

1.) 是否可以只更改一个标签的颜色,如何更改?

2.) 如果是这样,是否可以通过标签名称而不是数字来分配颜色?这是必要的,因为标签的顺序因图表中的结果而异。

提前致谢!

XML:

<charts>
    <chart plot_type="CategorizedHorizontal" name="chart_448800575176822696"> 
        <chart_settings>
            <title enabled="False" />
        <chart_background>
            <fill type="Solid" color="0xffffff" opacity="0"/>
            <border enabled="false"/>
            <corners type="Square"/>
        </chart_background>
        <data_plot_background></data_plot_background>

        <axes>

        <y_axis>
            <scale mode="Normal" minimum="0" maximum="100"/>
            <title>
                <text>Percentage</text>
                <font family="Tahoma" size="10" color="0x000000" />
            </title>
            <labels enabled="true" position="Outside">
                <font family="Tahoma" size="10" color="0x000000" />
                <format>
                    <![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]>
                </format>
            </labels>
            <major_grid enabled="False"/>
            <minor_grid enabled="False"/>
        </y_axis>


        <x_axis>
            <scale mode="Normal" inverted="True"/>
            <title>
                <text>label</text>
                <font family="Tahoma" size="10" color="0x000000" />
            </title>
            <labels enabled="true" rotation="0" position="Outside">
                <font family="Tahoma" size="10" color="0x000000" />
                <format>
                    <![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]>
                </format>
            </labels>
            <major_grid enabled="True" interlaced="false"><line color="Black"/></major_grid>
            <minor_grid enabled="True"></minor_grid>
        </x_axis>

        </axes>

     </chart_settings>

     <data_plot_settings enable_3d_mode="false" >
         <bar_series style="Silver">

         <tooltip_settings enabled="true">
         <format>
             <![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]>
         </format>
             <font family="Tahoma" size="10" color="0x000000" />
             <position anchor="Float" valign="Top" padding="10" />
         </tooltip_settings>

        <label_settings enabled="true" mode="Outside" multi_line_align="Center" rotation="90">
        <format>
            <![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]>
        </format>
            <background enabled="false"/>
            <font family="Tahoma" size="10" color="0x000000" />
        </label_settings>

        <bar_style></bar_style>
        <marker_settings enabled="True" >
            <marker type="None" />
        </marker_settings>
        </bar_series>
        </data_plot_settings>#DATA#
    </chart>
</charts>

AnyChart6不提供自定义轴的单个标签的功能。但您可以添加额外的自定义轴标签。看看下面的示例及其代码 - http://6.anychart.com/products/anychart/docs/users-guide/Samples/sample-custom-axes-labels.html#html-view

此外,您还可以在本文中了解有关添加自定义标签的更多信息 - http://6.anychart.com/products/anychart/docs/users-guide/index.html