GithubHelp home page GithubHelp logo

关于轴坐标的问题 about lchart HOT 12 CLOSED

MagicGt avatar MagicGt commented on May 23, 2024
关于轴坐标的问题

from lchart.

Comments (12)

MagicGt avatar MagicGt commented on May 23, 2024 1

轴字体,大小,颜色 已经知道了

from lchart.

linheimx avatar linheimx commented on May 23, 2024 1

给轴线设置一下adapter。

YAxis yAxis = lineChart.get_YAxis();
yAxis.set_ValueAdapter(new IValueAdapter() {
@OverRide
public String value2String(double value) {
return value+“月”;
}
});

from lchart.

linheimx avatar linheimx commented on May 23, 2024 1

关于轴线上的的一堆label,有几种计算方式的。

需要每个折线上的点对应的label都显示的话,可设置轴线label的计算方式
xAxis.setCalWay(Axis.CalWay.every);
(这样的话,轴线上的一堆label是和你的折线上数据相关,就没有0啦)

from lchart.

MagicGt avatar MagicGt commented on May 23, 2024

我还想问下,怎么能去除坐标负值,以0点为起点

from lchart.

MagicGt avatar MagicGt commented on May 23, 2024

你好,我并没有找到这个方法,没有暴露?

from lchart.

MagicGt avatar MagicGt commented on May 23, 2024

你好,我知道了,之前是1.0.9 忘记升级了,现在有这个方法了,但是我遇到了一个新的问题

from lchart.

MagicGt avatar MagicGt commented on May 23, 2024

现在的问题是
我有一条是自己画上去的折线 有一条是动态获取的
首先 每条折线的count 个数不一样
用了
xAxis.setCalWay(Axis.CalWay.every); 之后出现的问题是
坐标轴只会显示动态获取的count显示,而自己画的轴坐标不显示,只是有折线

from lchart.

MagicGt avatar MagicGt commented on May 23, 2024

譬如,x轴本来显示到70(这是自己画出来的,0 1 2 。。。。70)
动态获取的 x轴 最大值为10(获取的为 2 4 6 10)
结果是 x轴的坐标最大显示只显示(2 4 6 10),自己画的坐标不显示

from lchart.

linheimx avatar linheimx commented on May 23, 2024

xAxis.setCalWay(Axis.CalWay.every);我采取的策略是把第一条折线上的相关的label显示

from lchart.

linheimx avatar linheimx commented on May 23, 2024

考虑到你这是两条折线,一条折线上一堆数据,其实这不太适合采用Axis.CalWay.every

from lchart.

MagicGt avatar MagicGt commented on May 23, 2024

我改成按多值的显示第一条,但是又出个问题,就是
譬如X轴 count 过多的话,会重叠
二是y轴 放大后Y轴会有数据不显示的问题

from lchart.

linheimx avatar linheimx commented on May 23, 2024

*年,可以加我的qq:917881222
交流更加方便

from lchart.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.