PageRenderTime 69ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/ cfstox/CFStox/PowerCharts/Contents/HeatMap/labels.html

http://cfstox.googlecode.com/
HTML | 342 lines | 330 code | 12 blank | 0 comment | 0 complexity | 47d38b6d21e18ef6e3538e1acbab95c4 MD5 | raw file
Possible License(s): AGPL-3.0
  1. <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>PowerCharts v3 Documentation</title>
  6. <link rel="stylesheet" href="../css/Style.css" type="text/css" />
  7. <script type="text/javascript" src="../assets/prettify/prettify.js"></script>
  8. <link rel="stylesheet" type="text/css" href="../assets/prettify/prettify.css" />
  9. <script type="text/javascript" src="../assets/ui/js/jquery-1.4.2.min.js" ></script>
  10. <script type="text/javascript" src="../assets/ui/js/lib.js" ></script>
  11. </head>
  12. <body>
  13. <table width="98%" border="0" cellspacing="0" cellpadding="3" align="center">
  14. <tr>
  15. <td class="pageHeader">Heat map chart &gt; Labels and Tooltips
  16. </td>
  17. </tr>
  18. <tr>
  19. <td valign="top" class="text"><p>In a heat map chart a data plot can show multiple labels in different positions. For example, you can display labels at the center and the four corners of a dataplot. The attributes that help in achieving this are discussed below: </p></td>
  20. </tr>
  21. <tr>
  22. <td valign="top" class="text">
  23. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
  24. <tr>
  25. <td width="120" class="header">Attribute Name</td>
  26. <td width="100" class="header">Type</td>
  27. <td class="header">Description</td>
  28. <td width='320' class="header">Screenshot</td>
  29. </tr>
  30. <tr>
  31. <td><a name="value" id="value"></a>Value</td>
  32. <td>Numeric</td>
  33. <td>Displays any numeric value at the center of the data plot. All <a href="../FCV3Basics/Advanced/Number_Basics.html">number formatting</a> features will be applicable if this attribute is used. The example screenshot shows the value 32.</td>
  34. <td><img src="Images/value.jpg" class='imageBorder' /></td>
  35. </tr>
  36. <tr>
  37. <td><a name="displayvalue" id="displayvalue"></a>displayValue</td>
  38. <td>Numeric/String</td>
  39. <td>Displays any numeric or string value at the center of the data plot. This attribute overwrites the data of the <span class="codeInline">value</span> attribute when both are present. Number formatting features are not applicable on the value of this attribute. It is set to 'Ge' as displayed in the image beside.</td>
  40. <td><img src="Images/displayvalue.jpg" width="152" height="76" class='imageBorder' /></td>
  41. </tr>
  42. <tr>
  43. <td><a name="tl" id="tl"></a>tlLabel</td>
  44. <td>Numeric/String</td>
  45. <td>Displays a label on the top left corner of a data plot. It is set with the value '32' as displayed in the image beside.</td>
  46. <td><img src="Images/tllabel.jpg" class='imageBorder' /></td>
  47. </tr>
  48. <tr>
  49. <td><a name="tr" id="tr"></a>trLabel</td>
  50. <td>Numeric/String</td>
  51. <td>Displays a label on the top right corner of a data plot. It is set to 'Metalloids' as displayed in the image beside.</td>
  52. <td><img src="Images/Trlabel.jpg" class='imageBorder' /></td>
  53. </tr>
  54. <tr>
  55. <td><a name="bl" id="bl"></a>blLabel</td>
  56. <td>Numeric/String</td>
  57. <td>Displays a label on the bottom left corner of the data plot. It is set to 'Group' as displayed in the image beside. </td>
  58. <td><img src="Images/Bllabel.jpg" class='imageBorder'/></td>
  59. </tr>
  60. <tr>
  61. <td><a name="br" id="br"></a>brLabel</td>
  62. <td>Numeric/String</td>
  63. <td>Displays the label on the bottom right corner of the data plot. It is set to 'Germanium' as displayed in the image beside.</td>
  64. <td><img src="Images/Brlabel.jpg" class='imageBorder' /></td>
  65. </tr>
  66. </table>
  67. <p></p>
  68. <tr>
  69. <td valign="top" class="header">Using Styles to specify font properties of the data labels </td>
  70. </tr>
  71. <tr>
  72. <td valign="top" class="text"><p>If you do not want all the text on your chart to have similar font properties, you can use STYLES to define individual font properties for different text on the chart including all the labels. Using STYLES, you can specify a different font name, size, color, background color and border color and also make the text bold or italicized.</p>
  73. <p>Shown below are changes made in the basic font properties of all the data labels and a shadow effect added using styles. </p>
  74. <img src="Images/labelsStyle.jpg" class='imageBorder' />
  75. <p> The data for the above style changes is given below:</p>
  76. <tr>
  77. <td valign="top"> <div class="container">
  78. <ul class="tabs">
  79. <li><a href="#tab7">XML</a></li>
  80. <li><a href="#tab8">JSON</a></li>
  81. </ul>
  82. <div class="tab_container">
  83. <div id="tab7" class="tab_content">
  84. <pre class="prettyprint code_container">
  85. &lt;chart caption='Periodic Table' subCaption='Other Metals-Metalloids' xAxisName='Group' yAxisName='Period' canvasBgColor='FFFFFF' mapByCategory='1'&gt;
  86. ...
  87. <strong>&lt;styles&gt;
  88. &lt;definition&gt;
  89. &lt;style name='tlLabelFont' type='font' font='Arial' size='16' color='800080' bold='1'/&gt;
  90. &lt;style name='trLabelFont' type='font' font='verdana' size='14' color='AA3F55' underline='1'/&gt;
  91. &lt;style name='blLabelFont' type='font' font='trebuchet MS' size='18' color='7F1F00' italic='1'/&gt;
  92. &lt;style name='brLabelFont' type='font' font='trebuchet MS' size='12' color='0000FF' bgcolor='D4ABFF'/&gt;
  93. &lt;style name='datavaluesFont' type='font' font='Arial' size='22' color='2A3FAA' bold='1'/&gt;
  94. &lt;style name='datavaluesShadow' type='shadow' strength='2' quality='1'/&gt;
  95. &lt;/definition&gt;
  96. &lt;application&gt;
  97. &lt;apply toObject='tldatavalues' styles='tlLabelFont'/&gt;
  98. &lt;apply toObject='trdatavalues' styles='trLabelFont'/&gt;
  99. &lt;apply toObject='bldatavalues' styles='blLabelFont'/&gt;
  100. &lt;apply toObject='brdatavalues' styles='brLabelFont'/&gt;
  101. &lt;apply toObject='datavalues' styles='datavaluesFont'/&gt;
  102. &lt;apply toObject='datavalues' styles='datavaluesShadow'/&gt;
  103. &lt;/application&gt;
  104. &lt;/styles&gt;</strong>
  105. &lt;/chart&gt;
  106. </pre>
  107. </div>
  108. <div id="tab8" class="tab_content"><pre class="prettyprint code_container">{
  109. "chart":{
  110. "caption":"Periodic Table",
  111. "subcaption":"Other Metals-Metalloids",
  112. "xaxisname":"Group",
  113. "yaxisname":"Period",
  114. "canvasbgcolor":"FFFFFF",
  115. "mapbycategory":"1"
  116. },
  117. ...
  118. <strong>"styles":{
  119. "definition":[{
  120. "name":"tlLabelFont",
  121. "type":"font",
  122. "font":"Arial",
  123. "size":"16",
  124. "color":"800080",
  125. "bold":"1"
  126. },
  127. {
  128. "name":"trLabelFont",
  129. "type":"font",
  130. "font":"verdana",
  131. "size":"14",
  132. "color":"AA3F55",
  133. "underline":"1"
  134. },
  135. {
  136. "name":"blLabelFont",
  137. "type":"font",
  138. "font":"trebuchet MS",
  139. "size":"18",
  140. "color":"7F1F00",
  141. "italic":"1"
  142. },
  143. {
  144. "name":"brLabelFont",
  145. "type":"font",
  146. "font":"trebuchet MS",
  147. "size":"12",
  148. "color":"0000FF",
  149. "bgcolor":"D4ABFF"
  150. },
  151. {
  152. "name":"datavaluesFont",
  153. "type":"font",
  154. "font":"Arial",
  155. "size":"22",
  156. "color":"2A3FAA",
  157. "bold":"1"
  158. },
  159. {
  160. "name":"datavaluesShadow",
  161. "type":"shadow",
  162. "strength":"2",
  163. "quality":"1"
  164. }
  165. ],
  166. "application":[{
  167. "toobject":"tldatavalues",
  168. "styles":"tlLabelFont"
  169. },
  170. {
  171. "toobject":"trdatavalues",
  172. "styles":"trLabelFont"
  173. },
  174. {
  175. "toobject":"bldatavalues",
  176. "styles":"blLabelFont"
  177. },
  178. {
  179. "toobject":"brdatavalues",
  180. "styles":"brLabelFont"
  181. },
  182. {
  183. "toobject":"datavalues",
  184. "styles":"datavaluesFont"
  185. },
  186. {
  187. "toobject":"datavalues",
  188. "styles":"datavaluesShadow"
  189. }
  190. ]
  191. }</strong>
  192. }</pre></div></div></div>
  193. <div style="clear:both"></div></td>
  194. </tr>
  195. <tr>
  196. <td>&nbsp;</td>
  197. </tr>
  198. <tr>
  199. <td valign="top" class='header'><a name="tooltip" id="tooltip"></a>Configuring tooltips </td>
  200. </tr>
  201. <tr>
  202. <td><p>By default, Heat map chart shows the value or display value as tool tip for that data item. It also includes all the values provided through <span class="codeInline">trLabel</span>, <span class="codeInline">tlLabel</span>, <span class="codeInline">brlabel</span> and <span class="codeInline">bllabel</span> attributes along with the values of <span class="codeInline">trType</span>, <span class="codeInline">tlType</span>, <span class="codeInline">brType</span> and <span class="codeInline">blType</span> attributes. A screenshot displaying the tooltip with all the mentioned values is given below:</p>
  203. <tr>
  204. <td valign="top"><p><img src="Images/DefaultTooltip.jpg" class="imageBorder"/></p>
  205. <p>The data for the above screenshot is given below: </p>
  206. </td></tr>
  207. <tr>
  208. <td valign="top"> <div class="container">
  209. <ul class="tabs">
  210. <li><a href="#tab1">XML</a></li>
  211. <li><a href="#tab2">JSON</a></li>
  212. </ul>
  213. <div class="tab_container">
  214. <div id="tab1" class="tab_content">
  215. <pre class="prettyprint code_container">&lt;chart
  216. <strong>tlType='Atomic Number' brType='Name' blType='Isotope' trType='Atomic Weight'</strong> mapByCategory='1'
  217. caption='Periodic Table' subCaption='Other Metals-Metalloids' canvasBgColor='FFF5CE'
  218. xAxisName='Group' yAxisName='Period' canvasBgColor='FFFFFF'
  219. canvasBorderThickness='1'&gt;
  220. ...
  221. &lt;dataset&gt;
  222. &lt;set columnId='1' rowId='1' <strong>colorRangeLabel='Other nonmetals' tlLabel='1' brLabel='Hydrogen' trLabel='1.00794' blLabel='3' displayValue='H'</strong> /&gt;
  223. ...
  224. &lt;/dataset&gt;
  225. &lt;/chart&gt;</pre>
  226. </div>
  227. <div id="tab2" class="tab_content">
  228. <pre class="prettyprint code_container">{
  229. "chart":{
  230. <strong> &quot;tltype&quot;:&quot;Atomic Number&quot;,
  231. &quot;brtype&quot;:&quot;Name&quot;,
  232. &quot;bltype&quot;:&quot;Isotope&quot;,
  233. &quot;trtype&quot;:&quot;Atomic Weight&quot;,
  234. "caption":"Periodic Table",</strong>
  235. &quot;mapbycategory&quot;:&quot;1&quot;,
  236. "subcaption":"Other Metals-Metalloids",
  237. "canvasbgcolor":"FFF5CE",
  238. "xaxisname":"Group",
  239. "yaxisname":"Period",
  240. "canvasborderthickness":"1"
  241. },
  242. ...
  243. "dataset":[{
  244. "data":[{
  245. "columnid":"1",
  246. "rowid":"1",
  247. "colorrangelabel":"Other nonmetals",
  248. <strong> "tllabel":"1",
  249. "brlabel":"Hydrogen",
  250. "trlabel":"1.00794",
  251. "bllabel":"3",
  252. "displayvalue":"H"</strong>
  253. },
  254. ...
  255. ]
  256. }
  257. ]
  258. }
  259. </pre>
  260. </div>
  261. </div>
  262. </div>
  263. <div style="clear:both"></div>
  264. <p> <br />
  265. You can also customize the information displayed in the tooltip. To do this, you need to use the attribute <span class="codeInline">tooltext</span> through the<span class="codeInline"> &lt;set&gt;</span> element. The value of the attribute should be the information that you want to provide. A screenshot displaying customized tooltip is shown below:</p>
  266. <tr>
  267. <td valign="top"><p><img src="Images/Customizedtooltip.jpg" width="240" height="129" class="imageBorder"/></p>
  268. <p>The data for the above screenshot is given below: </p>
  269. </td></tr>
  270. </tr>
  271. <tr>
  272. <td valign="top"> <div class="container">
  273. <ul class="tabs">
  274. <li><a href="#tab3">XML</a></li>
  275. <li><a href="#tab4">JSON</a></li>
  276. </ul>
  277. <div class="tab_container">
  278. <div id="tab3" class="tab_content">
  279. <pre class="prettyprint code_container">&lt;chart caption='Periodic Table' subCaption='Other Metals-Metalloids' canvasBgColor='FFF5CE' xAxisName='Group' yAxisName='Period' canvasBgColor='FFFFFF' mapByCategory='1'
  280. tlType='Atomic Number' brType='Name' blType='Isotope' trType='Atomic Weight'
  281. canvasBorderThickness='1'&gt;
  282. ...
  283. &lt;dataset&gt;
  284. &lt;set tooltext='Discovered by Henry Cavendish in 1766' columnId='1' rowId='1' colorRangeLabel='Other nonmetals' tlLabel='1' brLabel='Hydrogen' trLabel='1.00794' blLabel='3' displayValue='H'/&gt;
  285. ...
  286. &lt;/dataset&gt;
  287. &lt;/chart&gt;</pre>
  288. </div>
  289. <div id="tab4" class="tab_content">
  290. <pre class="prettyprint code_container">{
  291. "chart":{
  292. "caption":"Periodic Table",
  293. "subcaption":"Other Metals-Metalloids",
  294. "canvasbgcolor":"FFF5CE",
  295. "xaxisname":"Group",
  296. "yaxisname":"Period",
  297. "mapbycategory":"1",
  298. "tltype":"Atomic Number",
  299. "brtype":"Name",
  300. "bltype":"Isotope",
  301. "trtype":"Atomic Weight",
  302. "canvasborderthickness":"1"
  303. },
  304. ...
  305. "dataset":[{
  306. "data":[{
  307. "columnid":"1",
  308. "rowid":"1",
  309. "colorrangelabel":"Other nonmetals",
  310. "tllabel":"1",
  311. "brlabel":"Hydrogen",
  312. "trlabel":"1.00794",
  313. "bllabel":"3",
  314. "displayvalue":"H",
  315. <strong>"tooltext":"Discovered by Henry Cavendish in 1766"</strong>
  316. },
  317. ...
  318. ]
  319. }
  320. ]
  321. }
  322. </pre>
  323. </div>
  324. </div>
  325. </div>
  326. <div style="clear:both"></div></td></tr>
  327. </table>
  328. <p></p>
  329. </body>
  330. </html>