Jpgraph:即使缺少某些月份也显示全年

发布于 2024-10-04 18:08:31 字数 181 浏览 0 评论 0原文

我想在图表中显示每个月的值。但根据年份的不同,开头或结尾的月份会丢失(例如,因为仅从四月而不是一月记录了值,或者因为本年度尚未结束)。

目前,Jpgraph 将仅显示具有值的月份。但我希望仍然有 12 个部分,缺少的部分应该是空的/零。

有没有办法让 Jpgraph 显示缺失的月份?

谢谢, 先生B

I want to show the values for each month in a graph. But depending on the year, months in the beginning or the end are missing (e.g. because values had only been recorded from April, not January, or because the current year isn't over yet).

Currently, Jpgraph will then only show the months that have values. But I'd like there to still be 12 sections, the missing ones should just be empty/zero.

Is there a way to have Jpgraph show the missing months?

Thanks,
MrB

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

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

发布评论

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

评论(1

囍孤女 2024-10-11 18:08:31

一步一步:

  1. 进入 php.ini
  2. 找到“memory_limit”
  3. 更改值并将其放入 32MB。(例如)
  4. 享受吧!

祝你好运

step by step:

  1. go to php.ini
  2. find "memory_limit"
  3. change value and Put it in the 32MB.(For Example)
  4. Enjoy!

good luck

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