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

如何设置折线填充图的线条宽度和填充颜色的透明度 #43

Closed
AAChartModel opened this issue Jan 27, 2018 · 1 comment
Closed

Comments

@AAChartModel
Copy link
Owner

No description provided.

@AAChartModel
Copy link
Owner Author

只需要像如下设置图表的填series数组中的数据元素即可

   aaChartModel = AAChartModel.init()
            .chartType(AAChartType.Area)//折线填充图
            .colorsTheme(["#fe117c","#ffc069","#06caf4","#7dffc0"])//主题颜色数组
            .title("")//图形标题
            .subtitle("")//图形副标题
            .series([
                [
                    "name": "Tokyo",
                    "data": [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],
                    "lineWidth":10,//设置折线填充图的线条宽度为10
                    "fillOpacity":0.3//设置折线填充图的填充颜色透明度为0.3
                ], ])

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