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

有什么文档之类的吗? #75

Open
cxy200927099 opened this issue Mar 24, 2017 · 3 comments
Open

有什么文档之类的吗? #75

cxy200927099 opened this issue Mar 24, 2017 · 3 comments

Comments

@cxy200927099
Copy link

在查看demo的时候,很多props的含义没有相关的文档,请问一下能从哪里查询到这些prop的说明吗?

@hongyin163
Copy link
Owner

是和mpAndroidchart的库的api是对应的

@cxy200927099
Copy link
Author

cxy200927099 commented Mar 24, 2017

嗯,看了一下午只能看您封装的库对应的android源码库去找,但是发现有的属性貌似不管用
比如在MPBarLineChartManager.java中,setAxisInfo()函数中有个设置虚线的prop:
if(v.hasKey("gridDashedLine")) {
ReadableMap gdl=v.getMap("gridDashedLine");
axis.enableGridDashedLine((float)gdl.getDouble("lineLength"),
(float)gdl.getDouble("spaceLength"),
(float)gdl.getDouble("phase"));
}
在js端我按照下面的属性设置,却不起作用,还报错说找不到属性
<LineChart
style={{height:200,}}
data={this.getLineData()}
visibleXRange={[0,100]}
maxVisibleValueCount={50}
xAxis={{
drawGridLines:true,
gridLineWidth:1,
position:"BOTTOM",
}}
yAxisRight={{enable:false}}
yAxis={{
startAtZero:false,
drawGridLines:true,
position:"OUTSIDE_CHART",
gridDashedLine:{
lineLength:3,
spaceLength:3,
phase:3,
},

}}
drawGridBackground={false}
backgroundColor={"WHITE"}
description={""}
legend={{
enable:false,
position:'BELOW_CHART_LEFT',
direction:"LEFT_TO_RIGHT"
}}
/>

android报错找不到lineLength

@hongyin163
Copy link
Owner

这个真是要用android studio调试下

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

2 participants