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

k线图的方向是不是反了 #49

Open
bigdataBTC opened this issue Oct 25, 2018 · 8 comments
Open

k线图的方向是不是反了 #49

bigdataBTC opened this issue Oct 25, 2018 · 8 comments

Comments

@bigdataBTC
Copy link

k线图的方向是不是反了

@tifezh
Copy link
Owner

tifezh commented Oct 25, 2018

什么方向反了

@bigdataBTC
Copy link
Author

数据少的时候 数据全部显示在右边了

@tifezh
Copy link
Owner

tifezh commented Oct 25, 2018

#28 最后面有

@bigdataBTC
Copy link
Author

什么意思啊 我的意思是 你的k线图的数据默认是显示在右边的 当数据少的时候 全部都在右边了 你方便加我qq吗 604416495 我给你截图看看吧 谢谢了

@bigdataBTC
Copy link
Author

找到解决方法了 谢谢了

@xueqiya
Copy link

xueqiya commented Dec 3, 2018

@lipeizjl @tifezh 你好 我也遇到这样的问题了 数据少的时候,k线从右边开始,请求你是怎么解决的呢

@Bertkiing
Copy link

Bertkiing commented Dec 17, 2018

@xueqiya `修改BaseKChartView中的两个方法:具体内容查看#28
/**
* 获取平移的最小值
* @return
*/
private float getMinTranslateX() {
if (!isFullScreen()) {
return getMaxTranslateX();
}
return -mDataLen + mWidth / mScaleX - mPointWidth / 2;
}

/**
 * 获取平移的最大值
 * @return
 */
private float getMaxTranslateX() {
    return mPointWidth / 2;
}`

@xueqiya
Copy link

xueqiya commented Dec 17, 2018 via email

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

3 participants