开发者

How can I add horizontal lines to a BarPlot

开发者 https://www.devze.com 2023-04-13 04:48 出处:网络
I want to know how could I add Horizontal lines to each bar of a barPlot with different values. I want to let the customer know what is the expected value with an horizo开发者_StackOverflowntal line

I want to know how could I add Horizontal lines to each bar of a barPlot with different values. I want to let the customer know what is the expected value with an horizo开发者_StackOverflowntal line and what is his real value with a bar.

Any idea ? Thanks


You can use a second bar plot. Set barBasesVary = YES on the second plot. It will ask the datasource for an additional field called CPTBarPlotFieldBarBase. Return a base value and tip value that will make a short bar.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号