StupidBeauty
Read times:273Posted at:Thu Oct 13 04:50:35 2011
- no title specified

Wt3.1.9文档翻译:Wt::Chart::WPieChart类参考,Wt::Chart::WPieChart Class Reference

详细描述

一个饼图。

一个饼图将某个单独的数据序列渲染成一个圆中的扇形,这样的话,每个扇形的面积都与数据序列中的值成正比。

要使用一个饼图的话,需要这样做:使用setModel()来设置一个模型,再使用setLabelsColumn()setDataColumn()来分别指定模型中包含文字标签和数据的列。

对于饼图,可以进行一些视觉上的配置,比如说启用3D 效果(setPerspectiveEnabled()),或者指定第一个扇形的角度。可将一个或多个扇形“爆”(exploded)出来,那样的话就会将它们与饼图中的其它扇形分隔开,要这么做,就使用setExplode()方法。

可使用setDisplayLabels()来为那些扇形以不同的方式来指定标签。

CSS

无法使用CSS 来设置样式。

一个饼图的示例

参考:

WCartesianChart

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4