MarcWeigert / GGCharts

可以高度自定义的图表框架。柱状图、折线图、雷达图、饼图、K线图、分时图。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KDJ无法绘制,已经确定最高价、最低价、开盘、收盘 都是有值的

Parkour-zhou opened this issue · comments

2018-01-08 20:22:33.102861+0800 LiangKe[1195:430743] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
screen shot 2018-01-08 at 8 23 25

commented

所有的KDJ都是这样么?

对的,我的KDJ也是
一直报这样一个错:[Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.

运行一会就崩了

commented

可能是lua脚本语言与oc语言基本类型转换错误。最好提供给我一个稳定重现的demo来排查。

@MarcWeigert 您好,demo我准备好了,麻烦了,谢谢哈
GGCharts-KDJerror.zip

commented

改好了, 更新最新代码就可以了。如果线吗发直接把 kdj.lua替换了就好。

@MarcWeigert 好的,麻烦了

commented

问题关了吧。

@MarcWeigert 刚更新了kdj.lua,clean,并删除工程,重新编译打包 ,还是报一样的问题,然后用发你的demo工程试了下,也是一样的,
2018-01-11 09:16:22.222412+0800 GGCharts[25494:3751986] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
2018-01-11 09:16:22.222674+0800 GGCharts[25494:3751986] [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.

commented

最新的kdj 用你的demo 没出现问题了啊

2018-01-12 10 31 03
你好像只做了判断 ,没做其他处理,可能是忘了没有提交上来吧

我自己修改了,现在可以了

   if (d == 0) then
    rsvArray[i] = {rsv = 50}
    else
    rsvArray[i] = {rsv = (aryList[i][getCloseMethod] - funcLLV(i)) / (funcHHV(i) - funcLLV(i)) * 100}

    end
commented

@MarcWeigert 是在d =0时候没有做 rsvArray[I]=50;