不知道如何构建这个钟形曲线图

发布于 2024-10-07 14:09:52 字数 341 浏览 0 评论 0原文

这是我试图解决的问题。是给物流公司用的。我已经处理了所有其他输入/变化,所以我有一件直接的事情要做。

有一个表格,其中包含历史订单和每英里支付的价格。我需要呈现/可视化定价分布。假设价格从每英里 0.80 到 1.80 不等。大多数负载的完成速度约为每英里 1.40。

没有特殊要求我应该如何想象它,但我看到它的方式 - X轴将显示价格 Y 轴将显示负载计数 我将把它显示为一条曲线。

为了让它看起来漂亮 - 我可能需要将 gata 聚合到 5c 的桶中,这样 X 轴上就没有很多点。

听起来对吗?我不想重新发明轮子,也许 4.0 图表控件中有内置函数可以处理所有这些问题?

提前致谢。

Here is problem I'm trying to solve. It's for logistics company. I got all other inputs/variations taken care of so I have 1 straight-forward thing to do.

There is table with historical orders and prices paid per/mile. I need to present/visualize pricing distribution. Let's say prices vary from 0.80 to 1.80 per mile. Most loads done at around 1.40 per mile.

There is no special requirement HOW I should visualize that but the way I see it -
X axis will show price
Y axis will show loads count
I will show it as a curved line.

To make it look nice - I probably need to aggregate gata into 5c buckets so I don't have many points on X axis.

Does it sound right? I don't want' to reinvent wheel and maybe there is built-in function to take care of all that in 4.0 chart control?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

人生百味 2024-10-14 14:09:52

MSCharting 示例 有一个“HistogramChartHelper”实用程序类,可以使直方图变得更容易。
我复制并做了一些小的编辑以在我的项目中使用。

The MSCharting samples has a "HistogramChartHelper" utility class that can make histograms easier.
I copied and made some minor edits to use in my project.

洋洋洒洒 2024-10-14 14:09:52

你的方法对我来说听起来不错。将东西聚集到桶中绝对可以帮助您理解这一点……只要毫不犹豫地使用桶大小,因为任意 5c 可能不是“正确”的大小。我还建议尝试使用旧的条形图...取决于您有多少数据点,我发现有时作为一系列条形图看起来更好:-)

Your methodology sounds good to me. Aggregating things into buckets can definitely help to drive the point home ... just don't hesitate to play with the bucket sizes as an arbitrary 5c might not be the "right" size. I would also recommend giving the old bar charts a try ... depending on how many data points you have, I find it sometimes just looks better as a series of bar charts :-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文