WebRoot/FusionChartsFree/Contents/Adv_Number_Basics.html
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?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">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FusionCharts Free Documentation</title>
<link rel="stylesheet" href="Style.css" type="text/css" />
</head>
<body>
<table width="98%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td><span class="pageHeader">Number Formatting in FusionCharts </span></td>
</tr>
<tr>
<td valign="top" class="text"><p> </p> </td>
</tr>
<tr>
<td valign="top" class="text"><p>FusionCharts offers you a lot of options to format your numbers on the chart. From number prefixes and suffixes to controlling the decimal places, FusionCharts lets you do it all. In this section, we'll see the number formatting properties supported by FusionCharts.</p>
<p>We'll start with setting decimal precisions for the numbers on chart. </p> </td>
</tr>
<tr>
<td valign="top" class="text"> </td>
</tr>
<tr>
<td valign="top" class="header">Controlling decimal precision </td>
</tr>
<tr>
<td valign="top" class="text"><p>All the charts in FusionCharts support the attribute <span class="codeInline">decimalPrecision</span>. If not specified a chart automatically shows number up to 2 decimal places. This single attribute lets you control the decimal precision of all the numbers on the chart. Using this attribute, you can globally set the number of decimal places of ALL numbers of the chart. For e.g., if you have numbers on your chart as 12.432,13.4 and 13 and you set <span class="codeInline"><chart ... decimalPrecision='0' ></span>, the numbers would be converted to 12, 13 and 13 respectively.</p> </td>
</tr>
<tr>
<td valign="top" class="text"><table width="98%" border="0" align="center">
<tr>
<td><div align="center"><img src="Images/Number_1.jpg" /></div></td>
<td><div align="center"><img src="Images/Number_2.jpg" /></div></td>
</tr>
<tr>
<td valign="top"><div align="center" class="imageCaption">Chart without any decimal formatting applied </div></td>
<td valign="top"><div align="center" class="imageCaption">With decimals set to 0</div></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" class="text"> </td>
</tr>
<tr>
<td valign="top" class="text"><p>Similarly, if you had data as 0.12342, 0.134 and 0.13, with <span class="codeInline">decimalPresion</span> not specified, FusionCharts would output 0.12, 0.13 and 0.13 respectively. Now you set <span class="codeInline">decimalPrecision</span> to 4 and will get 0.1243 ,0.1340 and 0..1300 respectively.</p> </td>
</tr>
<tr>
<td valign="top" class="text"><table width="98%" border="0" align="center">
<tr>
<td><div align="center"><img src="Images/Number_3.jpg" /></div></td>
<td><div align="center"><img src="Images/Number_4.jpg"></div></td>
</tr>
<tr>
<td><div align="center"><span class="imageCaption">Chart without any decimal formatting applied </span></div></td>
<td><span class="imageCaption">Forcing trailing zeroes by setting <span class="codeInline">decimalPrecision='4'</span> </span></td>
</tr>
</table></td>
</tr>
<tr>
后面还有 89 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。