fusioncharts仪表盘定义一个title或称caption

即在xml中定义annotations,申明text来输出一个标题:

<chart manageResize="1" origW="350" origH="200"  palette="2" bgAlpha="0" bgColor="FFFFFF" lowerLimit="0" upperLimit="100" numberSuffix="%" showBorder="0" basefontColor="000000" chartTopMargin="5" chartBottomMargin="5"  caption="设备运行状态实时监控" subCaption="xxxxd" toolTipBgColor="009999" gaugeFillMix="{dark-10},{light-70},{dark-10}" gaugeFillRatio="3" pivotRadius="8" gaugeOuterRadius="120" gaugeInnerRadius="70%"  gaugeOriginX="175" gaugeOriginY="170" trendValueDistance="5" tickValueDistance="3" manageValueOverlapping="1" autoAlignTickValues="1"><#rt>
   <colorRange><#rt>
      <color minValue="0" maxValue="45" code="FF654F"/><#rt>
      <color minValue="45" maxValue="80" code="F6BD0F"/><#rt>
      <color minValue="80" maxValue="100" code="8BBA00"/><#rt>
   </colorRange><#rt>
   <dials><#rt>
      <dial value="72" rearExtension="10" baseWidth="10"/><#rt>
   </dials><#rt>
   <annotations><#rt>
      <annotationGroup xPos="270" yPos="300" ><#rt>
         <annotation type="text" x="0" y="0" label="风险监控" align="center" bold="1" color="666666" size="11"/> <#rt>
      </annotationGroup> <#rt>
      <annotationGroup Id="GRPRED" xPos="175" yPos="125" visible="0" > <#rt>
         <annotation type="circle" x="0" y="0" radius="10" fillPattern="radial" color="FFBFBF,FF0000" showBorder="0"/><#rt>
      </annotationGroup> <#rt>
      <annotationGroup Id="GRPYELLOW" xPos="175" yPos="125" visible="0"><#rt>
         <annotation type="circle" x="0" y="0" radius="10" fillPattern="radial" color="FFFF00,BBBB00"showBorder="0"/><#rt>
      </annotationGroup> <#rt>
      <annotationGroup Id="GRPGREEN" xPos="175" yPos="125" visible="0"><#rt>
         <annotation type="circle" x="0" y="0" radius="10" fillPattern="radial" color="00FF00,339933" showBorder="0"/><#rt>
      </annotationGroup><#rt>
   </annotations><#rt>
   <trendpoints><#rt>
      <point startValue="62" displayValue="平均值" useMarker="1" markerRadius="8" dashed="1" dashLen="2" dashGap="2"  /><#rt>
   </trendpoints><#rt>
   <styles><#rt>
      <definition><#rt>
         <style name="RectShadow" type="shadow" strength="3"/><#rt>
		 <style name="trendvaluefont" type="font" bold="1" borderColor="#00cccc"/><#rt>
      </definition><#rt>
      <application><#rt>
         <apply toObject="Grp1" styles="RectShadow" /><#rt>
		 <apply toObject="Trendvalues" styles="trendvaluefont" /><#rt>
      </application><#rt>
   </styles><#rt>
</chart><#rt>

转载于:https://my.oschina.net/webas/blog/110681

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值