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


i'm trying display dashboard of fixed size pie charts in apex 4.26 however, need have legend , content dynamic. means chart more labels has larger legend , smaller pie chart 1 2 labels.

my current possible solution create 2 regions each chart, 1 pie in , 1 legend, can control size of these regions easily.

obviously, can turn off legend first region i'm having bit of trouble displaying legend in other. can me need alter or remove xml? (i'm presuming way it). here xml @ minute:

<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>   <anychart>     <settings>       <animation enabled="true"/>       <no_data show_waiting_animation="false">         <label>           <text>#no_data_message#</text>           <font family="verdana" bold="yes" size="10"/>         </label>       </no_data>     </settings>     <margin left="0" top="-10" right="0" bottom="0" />     <charts>       <chart plot_type="pie" name="chart_3232705401305025">          <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>             <legend enabled="true" position="bottom" align="near" elements_layout="horizontal" ignore_auto_item="true">             <title enabled="false"/>             <icon>               <marker enabled="true" />             </icon>             <items>               <item source="points" />             </items>             <font family="tahoma" size="10" color="0x000000" />           </legend>           <chart_animation type="appear" interpolation_type="quadratic" show_mode="onebyone"/>         </chart_settings>         <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" />              </tooltip_settings>             <label_settings enabled="false"/>             <pie_style>               </pie_style>             <marker_settings enabled="true" >               <marker type="none" />             </marker_settings>             <connector color="black" opacity="0.4"/>           </pie_series>         </data_plot_settings>     #data#       </chart>     </charts>   </anychart>   

any pointers appreciated! or bright ideas on easier way achieve this.

thanks!

you can make chart invisible , set legend float , overlap whole chart, sample below this, can replicate in apex too.

key settings are:

<chart_settings>    <legend enabled="true"  position="float" width="100%" height="100%"/>    <title enabled="false" /> </chart_settings>     

resulting legend

full settings:

<?xml version="1.0" encoding="utf-8"?> <anychart>   <charts>     <chart plot_type="pie">       <data_plot_settings>         <pie_series apply_palettes_to="points" radius="0">           <tooltip_settings enabled="false"/>           <label_settings enabled="false"/>         </pie_series>       </data_plot_settings>       <chart_settings>         <legend enabled="true"  position="float" width="100%" height="100%"/>         <title enabled="false" />       </chart_settings>             <data>         <series name="year 2003">           <point name="department stores" y="637166" />           <point name="discount stores" y="721630" />           <point name="men's/women's specialty stores" y="148662" />           <point name="juvenile specialty stores" y="78662" />           <point name="all other outlets" y="90000" />         </series>         <series name="year 2004">           <point name="department stores" y="737166" />           <point name="discount stores" y="537166" />           <point name="men's/women's specialty stores" y="188662" />           <point name="juvenile specialty stores" y="178662" />           <point name="all other outlets" y="89000" />         </series>       </data>     </chart>   </charts> </anychart> 

legend settings , positioning described at: http://6.anychart.com/products/anychart/docs/users-guide/index.html?legend-text-formatting.html


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -