XML/SWF Charts| CSS/XML Timeline Eons(New)| Timeline Eons| SlickBoard

 < previousnext > 

 

series_explode

 

<series_explode>
     <number>int</number>
   [ <number>int</number> ]
</series_explode>


Description

series_explode applies to pie, line, and scatter charts only. In pie charts, it sets which pie slice separates from the pie for emphasis. In line and scatter charts, it sets which line or point is increased in thickness or size for emphasis.

Series_explode contains a variable amount of numbers. The first number sets how much the first pie slice, line, or point are emphasized, the second number sets how much the second pie slice, line, or point are emphasized, and so on. The first pie slice starts at the 12 O'clock position. The first line represents the top row of data in chart_data.

It's not required to fill series_explode with the same amount of numbers as the series. For example, if a pie chart has 5 slices, it's sufficient to add one number to series_explode to separate just the first slice.

 

Pie Charts

In pie charts, a value of zero leaves the slice in its original position (moves it 0%.) A value of 100 moves the slice fully outside of the of pie's radius (moves it 100% outside of the pie.) A higher value moves it even farther. To make a slice invisible, make this value large enough to move it completely outside of the background. Negative values move the slice in the opposite direction.

 

Donut Charts

In donut charts, series_explode works if the chart has only one series (one donut ring). A value of zero leaves a donut part in its original position (moves it 0%.) A value of 100 moves the part fully outside of the of donut's radius (moves it 100% outside of the donut.) A higher value moves it even farther. To make a part invisible, make this value large enough to move it completely outside of the background. Negative values move the part in the opposite direction.

 

Line Charts

In line charts, a value of 100 leaves the line thickness the same as chart_pref : line_thickness (100% thickness.) A value of 200 makes it twice as thick (200% thickness.) Values lower than 100 reduce the line thickness. Usually, only one line is made thicker to emphasize it. The rest are left intact.

 

Scatter Charts

In scatter charts, a value of 100 leaves the point size the same as chart_pref : point_size (100%.) A value of 200 makes it twice as thick (200%.) Values lower than 100 reduce the point size. Usually, only one point is made larger to emphasize it. The rest are left intact.

 

 

Example

<chart>

   <chart_type>pie</chart_type>

   <chart_data>
      <row>
         <null/>
         <string>2005</string>
         <string>2006</string>
         <string>2007</string>
         <string>2008</string>
         <string>2009</string>
      </row>
      <row>
         <null/>
         <number>20</number>
         <number>10</number>
         <number>30</number>
         <number>50</number>
         <number>40</number>
      </row>
   </chart_data>
   
   
   <!-- explode the 1st and 3rd slices -->
   <series_explode>
      <number>20</number>
      <number>0</number>
      <number>70</number>
   </series_explode>

</chart>

 


<chart>

   <chart_type>line</chart_type>
   <chart_pref line_thickness='3' fill_shape='true' /> 
               
   <chart_data>
      <row>
         <null/>
         <string>2007</string>
         <string>2008</string>
         <string>2009</string>
      </row>
      <row>
         <string>region 1</string>
         <number>30</number>
         <number>50</number>
         <number>60</number>
      </row>
       <row>
         <string>region 2</string>
         <number>10</number>
         <number>30</number>
         <number>25</number>
      </row>
       <row>
         <string>region 3</string>
         <number>5</number>
         <number>20</number>
         <number>20</number>
      </row>
   </chart_data>
   
   
   <!-- increase the first line's thickness by 300% -->
   <series_explode>
      <number>300</number>
   </series_explode>

</chart>

 

 < previousnext > 


Copyright © 2003-2017, maani.us