Skip to content

Commit

Permalink
修改Ui
Browse files Browse the repository at this point in the history
  • Loading branch information
map committed Sep 1, 2017
1 parent 1d594d5 commit b760f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private void initView() {
v.left = 0;
v.right = 24;
v.bottom = 30;
v.top = 100;
v.top = 200;
mChart.setMaximumViewport(v);
mChart.setCurrentViewport(v);
mChart.setViewportCalculationEnabled(false);//注意要固定坐標,這個一定要設置
Expand Down Expand Up @@ -90,7 +90,7 @@ private void setData2() {
//// axisValue.setLabel(y[i]);
// axisValuesY.add(axisValue);
// }
Axis axisY = Axis.generateAxisFromRange(20f, 100f, 13f)
Axis axisY = Axis.generateAxisFromRange(100f, 200f, 10f)
// Axis axisY = new Axis(axisValuesY)
.setHasLines(true)
.setLineColor(Color.BLACK)
Expand All @@ -107,7 +107,7 @@ private void setData2() {
v.left = 18;
v.right = 24;
v.bottom = 25;
v.top = 100;
v.top = 200;
// mChart.setMaximumViewport(v);
mChart.setCurrentViewport(v);
mChart.selectValue(new SelectedValue(0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ private void drawAxisLabelsAndName(Canvas canvas, Axis axis, int position) {
float translateY;
if (isAxisVertical) {
labelY = rawValuesTab[position][valueToDrawIndex];
canvas.drawText(labelBuffer, labelBuffer.length - charsNumber, charsNumber, labelX - 5, labelY,
canvas.drawText(labelBuffer, labelBuffer.length - charsNumber, charsNumber, labelX - 15, labelY + 10,
labelPaintTab[position]);
} else {
labelX = rawValuesTab[position][valueToDrawIndex];
Expand Down

0 comments on commit b760f2e

Please # to comment.