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

 < previousnext > 

 

chart_data label

 

<chart_data>
   ...
   <number label='string'>...</number>
   ...
</chart_data>
                             


Description

In addition to containing the chart values, chart_data can be used to override the default chart labels and display custom labels instead. Chart labels are the red labels here:

 

  • To override a default chart label, add a label attribute and a string value to the corresponding chart_data's <number> tag.
  • To hide a chart label, override the default label with an empty string.
  • To add a multi-line label, break the lines with \r.

 

 

Example

<chart>

   <!-- show the default labels -->
   <chart_label position='outside' size='12' color='FF4400' alpha='100' />   


   <!-- chart_data -->
   <!-- override the labels of the lowest and highest values with multi-line labels-->   
   <!-- hide the labels of year 2007 by passing them empty strings -->
   <!-- leave the remaining default labels by not overriding them -->
   <chart_data>
      <row>
         <null/>
         <string>2007</string>
         <string>2008</string>
         <string>2009</string>
      </row>
      <row>
         <string>Region A</string>
         <number label='lowest\rvalue'>20</number>
         <number label=''>75</number>
         <number>85</number>
      </row>
      <row>
         <string>Region B</string>
         <number>40</number>
         <number label=''>25</number>
         <number label='highest\rvalue'>95</number>
      </row>
   </chart_data>   
  
</chart>

 

 < previousnext > 


Copyright © 2003-2017, maani.us