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

当lineBarSet.lineBarMode的值为LineBarDrawNomal时,x轴起始位置错误 #55

Open
ynwang2016 opened this issue Feb 8, 2020 · 0 comments

Comments

@ynwang2016
Copy link

ynwang2016 commented Feb 8, 2020

使用Demo中LineBarChartViewController控制器的代码,把91行代码修改为
lineBarSet.lineBarMode = LineBarDrawPNHeapUp;
lineBarSet.lineBarMode = LineBarDrawNomal
页面错误
大概定位到代码因为:obj.lineBarScaler.xRatio = 0;修改为obj.lineBarScaler.xRatio = .5;就可以正常显示

// 填充定标器
    for (NSInteger i = 0; i < baseLineArray.count; i++) {
        
        BaseLineBarData * obj = baseLineArray[i];
        
        if (self.lineBarMode == LineBarDrawNomal) {
            
            obj.lineBarScaler.xRatio = 0;
        }
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

1 participant