2017-11-22 21 views
0

私の(任意の)グラフのラベル(x軸上)の色を変更しようとしています。私もこれが可能かどうかはわかりませんが、スタイルを作成して個々のラベルに割り当てることで、costum XMLオプションを使ってやろうとしました。しかし、これは私のためにはうまくいかなかった(恐らく私が間違ってしまったため)。以下では、現在のカスタムXMLを見つけることができます(私の問題なし)。Oracle Apex Chart:ラベルの色を変更する

1.)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> 

答えて

0

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

関連する問題