将数据绑定到Asp.net HighCharts使用Jquery的Json [英] Binding Data to Asp.net HighCharts using Jquery Json

查看:113
本文介绍了将数据绑定到Asp.net HighCharts使用Jquery的Json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net统计图显示当月出勤一些。

I have a asp.net chart which shows some attendance of month.

我有一个下拉菜单,显示月份名称。用户从下拉列表中选择月份,然后点击一个按钮。

I have a dropdown which shows the month name. The user will select the month from the dropdown and click on a button.

单击此按钮,我想调用的ActionResult me​​ttod,将从本月选择一个数据库获取数据和数据绑定到图表(dotnet.highcharts)。

On this button click, I want to call ActionResult mettod, which will fetch the data from a database of selected month and bind the data to chart(dotnet.highcharts).

我想知道我是否可以将数据绑定到特定值的asp.net图。
任何人都可以请让我知道如何做到这一点?

I want to know if I can bind data to an asp.net chart with specific values. Can anyone please let me know how to do this?

推荐答案

您的方法可能会在这种情况下返回JsonResult。一旦你收到客户端的JSON(通过Ajax请求例如),你会提交它Highcharts一系列属性。

Your method would probably return JsonResult in that case. Once you receive that json on the client side (through ajax request e.g.) you would submit it to Highcharts series property.

这篇关于将数据绑定到Asp.net HighCharts使用Jquery的Json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆