如何使用 json 填充 google 条形图中的数据

发布于 2024-09-14 08:45:32 字数 275 浏览 1 评论 0原文

我正在尝试在 asp 中使用 google 条形图 .net-mvc 应用程序。

该示例作为静态表非常简单,但我想在服务器端构建该表并使用 ajax 传回客户端。

无论如何,您是否可以通过获取 json 或类似内容的 ajax 调用来填充用于条形图的数据表?

I am trying to use a google bar chart in an asp.net-mvc application.

The sample is quite straight forward to do as a static table but i want to build up the table on the server side and pass back down to the client using ajax.

Is there anyway you can populate the datatable that is used for the bar chart with an ajax call getting json or something similar ?

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

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

发布评论

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

评论(1

时光是把杀猪刀 2024-09-21 08:45:32

您可以将这些工具之一与 jQuery ajax 请求一起使用,例如:

(您仍然需要在服务器端构建适当的 JSON 表示形式。)

You could use one of these tools with jQuery ajax requests for example:

(You'd still need to construct the appropriate JSON representations on the server side.)

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