Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the problem that the y-axis is not displayed. #551

Open
YongfaWang opened this issue Aug 10, 2021 · 0 comments
Open

About the problem that the y-axis is not displayed. #551

YongfaWang opened this issue Aug 10, 2021 · 0 comments

Comments

@YongfaWang
Copy link

My x-axis is displayed normally, but the y-axis is not displayed. How can I solve this? Where is the root of the problem??
This is my email: 2498565561@qq.com && w2498565561@gmail.com
I am very grateful to you for solving this problem for me
Here is my code ↓:

`
List axisX = new ArrayList<>();
for(int index = 0; index < GPST.size(); index++)
axisX.add(new AxisValue(index).setLabel(GPST.get(index)));

                    List<AxisValue> axisY = new ArrayList<>();
                    for(int index = 0; index < Dist.size(); index++) {
                        axisY.add(new AxisValue(index).setLabel(Dist.get(index)));
                    }

                    // This is Y axis
                    Axis axis1 = new Axis();
                    axis1.setValues(axisX);
                    axis1.setTextColor(Color.BLUE);

                    // This is Y axis
                    Axis axis2 = new Axis();
                    axis2.setValues(axisY);

                    data.setAxisXBottom(axis2);
                    data.setAxisYLeft(axis1);
                    lineChartView.setLineChartData(data);

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant