欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

flex4.6 图表 在module中 x轴旋转正确的做法

发布时间:2025/4/16 编程问答 54 豆豆
生活随笔 收集整理的这篇文章主要介绍了 flex4.6 图表 在module中 x轴旋转正确的做法 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

1.必须嵌入字体 并且吧字体在application中申明

<fx:Style>@namespace mx "library://ns.adobe.com/flex/mx";@font-face{src: url("com/qijinsoft/assets/font/chart.ttf");fontFamily: myChartFont;embedAsCFF: false; }</fx:Style>

2.在module中

<fx:Style>@namespace mx "library://ns.adobe.com/flex/mx";mx|LineChart {fontFamily: myChartFont;fontSize: 12;} </fx:Style><mx:LineChart id="linechart" x="0" y="54" showDataTips="true" width="100%" height="85%" ><mx:horizontalAxis><!--表示横向坐标的序列字段--><mx:CategoryAxis id="cdate" title="日期" categoryField="date" /></mx:horizontalAxis><mx:horizontalAxisRenderers><mx:AxisRenderer axis="{cdate}" id="axisRender" labelAlign="bottom" labelRotation="65"/></mx:horizontalAxisRenderers><mx:verticalAxis><mx:LinearAxis title="人数" baseAtZero="true" displayName="人数"/></mx:verticalAxis><mx:series><mx:LineSeries displayName="充值人数" yField="loginnum" id="loginnum" showEffect="{wipe}" /><mx:LineSeries displayName="新增充值人数" yField="maxonline" id="maxonline" showEffect="{wipe}" /></mx:series></mx:LineChart><mx:Legend left="10" bottom="10" width="100%" height="25" dataProvider="{linechart}"/>

这样就OK 了

总结

以上是生活随笔为你收集整理的flex4.6 图表 在module中 x轴旋转正确的做法的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。