hellocharts-android icon indicating copy to clipboard operation
hellocharts-android copied to clipboard

One dot doesn't show.

Open zxdeer opened this issue 6 years ago • 4 comments

One dot doesn't show.And The x axis

The left and right display are incomplete. Thx

zxdeer avatar Jan 12 '18 10:01 zxdeer

++ for this issue. I have similar problem.

I use BubbleChartView and I add points one by one. I need the first one to be visible when added. The thing is that Y axis is squeezed somehow.

I am able to reproduce the issue in your sample application:

screenshot_20180121-184041

The effect above appears when I change line 148 of BubbleChartActivity.java (https://github.com/lecho/hellocharts-android/blob/master/hellocharts-samples/src/lecho/lib/hellocharts/samples/BubbleChartActivity.java#L148) to the following:

BubbleValue value = new BubbleValue(i, 0, 0);

Any idea how to solve this?

MGasztold avatar Jan 21 '18 17:01 MGasztold

@MGasztold The padding is fixed, but a point is not displayed.

zxdeer avatar Jan 22 '18 04:01 zxdeer

How is the padding issue fixed?

For me the Y axis is squeezed completely, see screenshot of the demo app in my previous post. Not only if you put single point but also if multiple points have the same Y coord. The same would happen if X coordinate is constant for all points.

screenshot_20180122-133153

The screenshot above is for line 148 of BubbleChartActivity.java being like this :

BubbleValue value = new BubbleValue(0, i, 0);

MGasztold avatar Jan 22 '18 12:01 MGasztold

Same issue with linechartview. If all data's y-axis value are same, nothing will show in the chart. This looks like the viewport automatic scaling Caused.

uCloudCastle avatar Apr 28 '18 06:04 uCloudCastle