核心图 - 获取数据来填充 x 轴屏幕空间
我的核心情节即将完成,但我注意到在完成之前我需要更改一个不寻常的事情。 x 轴沿底部正确缩放,左右边缘表示我设置的范围。然而,数据在左侧全部挤在一起,几乎就好像 y 值与其正确的 x 值不对应一样。
这张图片应该能说明我的意思。您会注意到日期沿着底部排列,但实际值不会超过 6/3/11 标记。它们应该一直向右。
My Core Plot is almost finished up but I've noticed an unusual thing I need to change before calling it done. The x axis is scaled properly along the bottom, and the left and right edges indicate the range that I've set. The data, however, is all crushed together on the left side, almost as if the y values are not corresponding to their proper x values.
This image should demonstrate what I mean. You'll notice that the dates run along the bottom, but the actual values don't go past the 6/3/11 mark. They should be all the way to the right.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查数据源返回的值。确保 x 值是根据用于 x 轴范围和标签的相同开始日期和间隔计算的。
Check the values returned by your datasource. Make sure the x-values are calculated from the same starting date and intervals that you used for the x-axis range and labels.