如何在mpandroidcharts或ios-charts中实现此堆叠的线路图
我有许多图表/图形,使用已移植的mpandroidcharts项目 ios-charts> ios-charts by danielgindi by danielgindi 但是我 m收到一个请求,我只是不确定今天的事物在技术上是否可以。
我已经使用了梯度,但不确定是否有一种方法可以使它成为2个面/彩色梯度而不是逐渐淡出的方法。我还没有创建或看到过虚线通过现有图表的示例,但是假设Zoom并不是我可以假设地浮动视图的Zoom,但是我绝对希望将其放在本机图表代码中/执行。
第一个图显示了用户计划在退休时计划多少,绿色的两种阴影代表了不同的货币来源,虚线表示他们从退休到估计的死亡时间的支出。
第二个图显示了用户计划在退休时计划有多少与他们所拥有的计划之间的差距,而从退休到估计的死亡中,它们的外观与他们所拥有的相比将如何。
想法?
用户计划在退休时有多少绿色 i.sstatic.net/lrvwa.png“ rel =“ nofollow noreferrer”>
I have a number of charts/graphs created with the ported MPAndroidCharts project iOS-Charts by DanielGindi but I'm getting a request and I'm just not sure it's technically possible with things as they exist today.
I have used gradients but not sure if there's a way to kind of have it just be a 2 sided/colored gradient instead of a gradual fade. I have not created or seen an example of a dotted line coming through the existing chart but assuming zoom isn't a possibility I could hypothetically float a view over the top of it but I'd definitely prefer to have it in the native charts code/implementation.
The first graph is showing how much a user plans to have at retirement, the two shades of green represent different sources of money, the dotted line represents their spending from retirement to their estimated time of death.
The second graph is showing the gap between how much a user plans to have at retirement and how much we project they're missing compared to what they have and how that will look across the time from retirement to estimated death.
Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它看起来像是带有三行的线图,每条线都带有坚实的填充。
在顶部,虚线图具有白色冲程,没有填充,但是在底部,它具有黑色笔画和灰色填充。
在顶部,虚线应在顶部处于顶部,但是在底部,应将其命令在底部。
It looks like a line chart with three lines and each with a solid fill.
In the top one, the dashed line graph has a white stroke and no fill, but in the bottom one, it has a black stroke and gray fill.
In the top one, the dashed line should be z-ordered to be on top, but in the bottom one, it should be z-ordered to be on the bottom.