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

如果不设置图片,文字偏移到右上角了! #6

Open
wl386123298 opened this issue Jan 30, 2018 · 3 comments
Open

如果不设置图片,文字偏移到右上角了! #6

wl386123298 opened this issue Jan 30, 2018 · 3 comments

Comments

@wl386123298
Copy link

wl386123298 commented Jan 30, 2018

如图

@tinysdj
Copy link

tinysdj commented Feb 6, 2018

同样的问题,文字偏移,有图片的时候没问题,代码跟demo是一样的

@hnxylc8818
Copy link

hnxylc8818 commented Apr 9, 2018

drawVertex 这个方法改下就好了
drawVertexImpl(canvas, text, null, mVertexTextPaint, x - textWidth / 2, y + textHeight / 4);
这句代码改为
drawVertexImpl(canvas, text, null, mVertexTextPaint, textY, textX);

@CodeK1988
Copy link

@hnxylc8818 但是文字有一半显示在chart里了

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

4 participants