Wednesday 4 October 2017

Custom Dial Gauge Anychart in Oracle Apex



Add Custom XML


<anycart>
  <settings>
    <animation enabled="true">
  </animatin></settings>
  <margin all="5">
  <gauges>
    <gauge>
      <chart_settings>
        <title enabled="false">
          <text><![CDATA[11]]></text>
                         <font family="Arial" size="20" bold="true" color="#494949"/>
        </title>
   <chart_background enabled="false">
<border enabled="false">
</border></chart_background>
      </chart_settings>
      <circular height="60" width="100" x="0" y="0">
     <axis radius="37" size="3" start_angle="84" sweep_angle="192">
       <scale major_interval="1" maximum="100" minimum="90" minor_interval="0.2">
                                    <labels align="Outside" padding="6">
                                       <format>{%Value}{numDecimals:0}%</format>
                                       <span bold="true" family="Arial" style="color: #494949;">
                                    </span></labels>
                                    <scale_bar>
                                        <fill color="#292929">
                                    </fill></scale_bar>
                                    <major_tickmark align="Center" length="10" padding="0">
                                    <minor_tickmark enabled="true" length="5">
                                    <color_ranges>
                                        <color_range align="Inside" end="100" end_size="10" padding="6" start="88" start_size="10">
                                            <fill type="Gradient">
                                                <gradient>
                                                    <key color="#870101">
                                                    <key color="Yellow">
                                                    <key color="Green">
                                                </key></key></key></gradient>
                                            </fill>
                                            <border color="Black" enabled="true" opacity="0.4">
                                        </border></color_range>
                                    </color_ranges>
                                </minor_tickmark></major_tickmark></scale></axis>     
   <frame></frame>
          <inner_stroke enabled="false">
          <outer_stroke enabled="false">
          <background>
            <fill type="Gradient">
              <gradient angle="45">
                <key color="#FDFDFD">
                <key color="#F7F3F4">
              </key></key></gradient>
            </fill>
            <border color="#A9A9A9" enabled="true">
          </border></background>
          <effects enabled="false">
     
        <pointers>
          <pointer value="93">
            <label enabled="true">
              <position placement_mode="ByPoint" x="50" y="15">
              <format>&lt;![CDATA[{%Value}{numDecimals:2}%]]&gt;</format>
                <span bold="true" family="Arial" style="color: #494949;"> *
              <background enabled="false">
            </background></span></position></label>
            <needle_pointer_style point_radius="3" point_thickness="5" thickness="7">
              <fill color="Rgb(230,230,230)">
              <border color="Black" opacity="0.7">
              <effects enabled="true">
                <bevel distance="2" enabled="true" highlight_opacity="0.6" shadow_opacity="0.6">
                <drop_shadow blur_x="1" blur_y="1" distance="1" enabled="true" opacity="0.4">
              </drop_shadow></bevel></effects>
              <cap>
                <background height="12" width="12">
                  <fill type="Gradient">
                    <gradient angle="45" type="Linear">
                      <key color="#D3D3D3">
                      <key color="#6F6F6F">
                    </key></key></gradient>
                  </fill>
                  <border color="Black" opacity="0.9">
                </border></background>
                <effects enabled="true">
                  <bevel distance="2" enabled="true" highlight_opacity="0.6" shadow_opacity="0.6">
                  <drop_shadow blur_x="2" blur_y="2" distance="1.5" enabled="true" opacity="0.4">
                </drop_shadow></bevel></effects>
              </cap>
            </border></fill></needle_pointer_style>
            <animation duration="1.5" enabled="true" interpolation_type="Bounce" start_time="1">
          </animation></pointer>
        </pointers>
      </effects></outer_stroke></inner_stroke></circular>
    </gauge>
  </gauges>
</margin></anychart>

https://apex.oracle.com/pls/apex/f?p=131188:4:115850357468374:::::

No comments:

Post a Comment