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

关于主界面下方部分柱子显示不出来 #35

Open
pengzhaowen opened this issue Jul 30, 2019 · 7 comments
Open

关于主界面下方部分柱子显示不出来 #35

pengzhaowen opened this issue Jul 30, 2019 · 7 comments

Comments

@pengzhaowen
Copy link

你好,请问下主界面下面的柱状图为什么有的数据显示不出来呢?

@huidtc
Copy link

huidtc commented Jul 30, 2019

macd你这边可以展示正常了吗

@pengzhaowen
Copy link
Author

可以正常显示macd的,不过里面有一个值 pillarWidth 然后drawHistogram 好像画的值有的画不出来 导致少数部分柱子显示不出来

@huidtc
Copy link

huidtc commented Jul 30, 2019

请问 弄好了吗 我看了一天了 没找到办法怎么修改 可以不可以加个qq 请教一下

@huidtc
Copy link

huidtc commented Jul 30, 2019

我的qq 842825649

@huidtc
Copy link

huidtc commented Jul 31, 2019

你好,请问下主界面下面的柱状图为什么有的数据显示不出来呢?

madc可以请教一下吗 我这搞了半天 找不到原因

@442048209as
Copy link

在BaseKLineChartView类中修改和添加如下代码
public float getVolY(float value) {
float v = mVolMaxValue - value;
if(v <= 0){
return mVolRect.top + 1;
}
return borderCheck(v * mVolScaleY + mVolRect.top,mVolRect.bottom);
}

/**
* Y轴值的极限值检测
* 用于解决v的值和VolRect的高度一致时,会导致柱子显示空
* @param v
* @param bottom
* @return
*/
private float borderCheck(float v,int bottom){
return v >= bottom ? bottom - 1 : v;
}

@huidtc
Copy link

huidtc commented Jul 31, 2019

在BaseKLineChartView类中修改和添加如下代码
public float getVolY(float value){
float v = mVolMaxValue - value;
if(v <= 0){
return mVolRect.top + 1;
}
return borderCheck(v * mVolScaleY + mVolRect.top,mVolRect.bottom);
}

/ **

  • Y轴值的极限值检测
    *用于解决v的值和VolRect的高度一致时,会导致柱子显示空
  • @param v
  • @param bottom
  • @return
  • /
    private float borderCheck(float v, int bottom){
    return v> = bottom?bottom - 1:v;
    }

不知道是不是我的数据有问题 我这usdt相关没有问题 但是其他都展示不出来 我看数据相差都不多

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