【发布时间】:2017-11-23 11:01:31
【问题描述】:
我正在尝试更改我的(任意)图表的一个标签(在 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>
【问题讨论】:
标签: xml oracle-apex anychart