Comments (12)
轴字体,大小,颜色 已经知道了
from lchart.
给轴线设置一下adapter。
YAxis yAxis = lineChart.get_YAxis();
yAxis.set_ValueAdapter(new IValueAdapter() {
@OverRide
public String value2String(double value) {
return value+“月”;
}
});
from lchart.
关于轴线上的的一堆label,有几种计算方式的。
需要每个折线上的点对应的label都显示的话,可设置轴线label的计算方式
xAxis.setCalWay(Axis.CalWay.every);
(这样的话,轴线上的一堆label是和你的折线上数据相关,就没有0啦)
from lchart.
我还想问下,怎么能去除坐标负值,以0点为起点
from lchart.
你好,我并没有找到这个方法,没有暴露?
from lchart.
你好,我知道了,之前是1.0.9 忘记升级了,现在有这个方法了,但是我遇到了一个新的问题
from lchart.
现在的问题是
我有一条是自己画上去的折线 有一条是动态获取的
首先 每条折线的count 个数不一样
用了
xAxis.setCalWay(Axis.CalWay.every); 之后出现的问题是
坐标轴只会显示动态获取的count显示,而自己画的轴坐标不显示,只是有折线
from lchart.
譬如,x轴本来显示到70(这是自己画出来的,0 1 2 。。。。70)
动态获取的 x轴 最大值为10(获取的为 2 4 6 10)
结果是 x轴的坐标最大显示只显示(2 4 6 10),自己画的坐标不显示
from lchart.
xAxis.setCalWay(Axis.CalWay.every);
我采取的策略是把第一条折线上的相关的label显示
from lchart.
考虑到你这是两条折线,一条折线上一堆数据,其实这不太适合采用Axis.CalWay.every
from lchart.
我改成按多值的显示第一条,但是又出个问题,就是
譬如X轴 count 过多的话,会重叠
二是y轴 放大后Y轴会有数据不显示的问题
from lchart.
*年,可以加我的qq:917881222
交流更加方便
from lchart.
Related Issues (13)
- 你好 HOT 3
- viewpage滑动冲突 HOT 2
- 关于单位和显示的问题 HOT 1
- 如何设置动画的时间? HOT 2
- I want to have such bar for working hours. How to get this? HOT 2
- 你好,想问下怎样绘制不连续的曲线 HOT 3
- 你好,最近在用的时候发现可能是个bug。 HOT 4
- How to make xAxis with String Values? HOT 5
- 请问哪种阶梯图形怎么改呢? HOT 1
- How do I display the value next to the dot? HOT 1
- x轴可以控制只显示指定的个数,譬如5个吗 HOT 3
- 频繁刷新绘制大量数据的时候有点卡顿,有没有考虑过用surfaceView自定义折线呢 HOT 1
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 lchart.