Comments (5)
you can set ValueAdapter for yAxis,like this:
yAxis.set_ValueAdapter(new IValueAdapter() {
@Override
public String value2String(double value) {
if (value == 1) {
return "2015 year";
} else if (value == 10) {
return "2016 year";
} else {
return "2017 year";
}
}
});
from lchart.
i tried this, it's just show 2017 year
i tried xAxis
from lchart.
assume your line data is:
(1,10),(10,100),(20,3)
you can adapter
1--->2015 year
10--->2016 year
other--->2017 year
if your data contain (2,100)
2 is other,so show the 2017 year
from lchart.
can you help me sir?
i want data with month
January untill december, how to make it?
i tried this
xAxis.set_ValueAdapter(new IValueAdapter() {
@Override
public String value2String(double value) {
if (value == 1) {
return "Januari";
}
else if (value == 2) {
return "Februari";
}
else if (value == 3) {
return "MAret";
}
else if (value == 4) {
return "April";
}
else if (value == 5) {
return "Juni";
}
}
});
from lchart.
if your data like ''(1,x),(2,x),(3,x),(4,x)...''
your adapter is ok
attention:
there are some way to calculate the values in axis.
if want show all label in axis,please set xAxis.setCalWay(Axis.CalWay.every);
(three calcute way like:perfect,justAvg,every,you can try it )
from lchart.
Related Issues (13)
- 你好 HOT 3
- viewpage滑动冲突 HOT 2
- 关于单位和显示的问题 HOT 1
- 关于轴坐标的问题 HOT 12
- 如何设置动画的时间? HOT 2
- I want to have such bar for working hours. How to get this? HOT 2
- 你好,想问下怎样绘制不连续的曲线 HOT 3
- 你好,最近在用的时候发现可能是个bug。 HOT 4
- 请问哪种阶梯图形怎么改呢? 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.