Showing just the legend of an Oracle Apex/AnyChart Pie Chart

I’m currently trying to display a dashboard of fixed size pie charts in APEX 4.26 however, they need to have a legend and their content is dynamic. This means that a chart with more labels has a larger legend and a smaller pie chart than say one with only two labels.

My current possible solution is to create two regions for each chart, one with the pie in it and one with just the legend, then I can control the size of these regions easily.

Obviously, I can easily turn off the Legend for the first region but I’m having a bit of trouble displaying only the legend in the other. Can anyone help me with what I need to alter or remove from the XML? (I’m presuming this is the way to do it). Here is my XML at the minute:

<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>  
    <animation enabled="true"/>  
    <no_data show_waiting_animation="False">  
        <font family="Verdana" bold="yes" size="10"/>  
  <margin left="0" top="-10" right="0" bottom="0" />  
    <chart plot_type="Pie" name="chart_3232705401305025">   
        <title enabled="False" />  
          <fill type="Solid" color="0xffffff" opacity="0" />  
          <border enabled="false"/>  
          <corners type="Square"/>  


        <legend enabled="true" position="Bottom" align="Near" elements_layout="Horizontal" ignore_auto_item="True">  
          <title enabled="False"/>  
            <marker enabled="true" />  
            <item source="Points" />  
          <font family="Tahoma" size="10" color="0x000000" />  
        <chart_animation type="Appear" interpolation_type="Quadratic" show_mode="OneByOne"/>  
      <data_plot_settings enable_3d_mode="false" >  
        <pie_series style="Aqua">  
          <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" />   
          <label_settings enabled="false"/>  

          <marker_settings enabled="True" >  
            <marker type="None" />  
          <connector color="Black" opacity="0.4"/>  


Any pointers much appreciated! Or any bright ideas on an easier way to achieve this.


Source: xml

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.