Comments (2)
AAChartModel *chartModel= AAObject(AAChartModel)
.chartTypeSet(AAChartTypePie)
.titleSet(@"编程语言热度")
.subtitleSet(@"虚拟数据")
.dataLabelEnabledSet(false)//是否直接显示扇形图数据, 设置为 false 将不显示拖线
.yAxisTitleSet(@"摄氏度")
.seriesSet(
@[AAObject(AASeriesElement)
.nameSet(@"语言热度占比")
.dataSet(@[
@[@"Java" , @67],
@[@"Swift" , @44],
@[@"Python", @83],
@[@"OC" , @11],
@[@"Ruby" , @42],
@[@"PHP" , @31],
@[@"Go" , @63],
@[@"C" , @24],
@[@"C#" , @888],
@[@"C++" , @66],
]),
]
)
;
从上段示例代码中,你可以看出,如果因手机屏幕太小受限,可以设置 AAChartModel 属性dataLabelEnabled值为 false,这时扇形图就不显示拖线了
from aachartkit.
如果按照你所提的要求,将具体的数据展示在扇形上,得到的效果如下
数据占比较小的部分文字会挤压在一起,造成一种视觉上的混乱感觉.这样的最终效果可能不会是你所想要的结果.不过你真的需要的话,可以考虑添加的.
from aachartkit.
Related Issues (20)
- AATooltip中的point.x如何格式化 HOT 1
- 曲线图,数据必须是根据X轴个数来分割显示的吗? HOT 3
- Y轴数据显示精度问题
- 模拟器报错
- 环形玫瑰图
- 请问能否实现手指拖动线条上下调节当前位置的数值? HOT 5
- iOS初始化问题 HOT 12
- y轴的坐标间距如何获取 HOT 1
- 这种仪表咋实现呢? HOT 1
- 数据在初次加载时未能完全绘制 HOT 1
- 如何区分双 Y轴图表中的具体某一个 Y轴 HOT 5
- 关于双 Y轴刻度线不对齐的问题 HOT 2
- 通过入睡时间,tooltips上显示正常的HH:mm - HH:mm,这种js应该怎么写啊 HOT 1
- ios AALegend 如何禁止点击 禁用点击区块 (尝试过 很多属性都不能满足需求) HOT 2
- Y轴labels无法自定义显示格式化 HOT 1
- 最新版本获取不到AAOptions HOT 1
- Swift 无法为 X 轴文字 Labels 添加点击事件 HOT 1
- 如何默认选中折线图某个点 HOT 2
- How to change range on Y axis HOT 11
- Background color change is late, so it flashes from white to selected color
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aachartkit.