Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用C在ASP.Net中使用jquery的堆叠条形图?_Jquery_Charts_Flot - Fatal编程技术网

使用C在ASP.Net中使用jquery的堆叠条形图?

使用C在ASP.Net中使用jquery的堆叠条形图?,jquery,charts,flot,Jquery,Charts,Flot,我想使用query创建一个堆叠条形图。我已经用静态值做了这个图表,但是现在我要用动态值来做 我正在使用flot插件,如果有任何其他插件是好的或可行的,请建议我。您可以使用基于Flash的图表和动画,用jquery和asp.net显示它 他们必须使用jquery显示图表 您可以在和上找到更多信息。堆叠条形图可以在C和ASP.net中实现,无需使用第三方图表 for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { MobileSalesChart

我想使用query创建一个堆叠条形图。我已经用静态值做了这个图表,但是现在我要用动态值来做

我正在使用flot插件,如果有任何其他插件是好的或可行的,请建议我。

您可以使用基于Flash的图表和动画,用jquery和asp.net显示它

他们必须使用jquery显示图表


您可以在和上找到更多信息。

堆叠条形图可以在C和ASP.net中实现,无需使用第三方图表

for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
MobileSalesChart.Series["Apple"].Points.Add(new DataPoint(i, ds.Tables[0].Rows[i]["Apple"].ToString().Trim()));
MobileSalesChart.Series["Nokia"].Points.Add(new DataPoint(i, ds.Tables[0].Rows[i]["Nokia"].ToString().Trim()));
MobileSalesChart.Series["Samsung"].Points.Add(new DataPoint(i, ds.Tables[0].Rows[i]["Samsung"].ToString().Trim()));
MobileSalesChart.Series["Sony"].Points.Add(new DataPoint(i, ds.Tables[0].Rows[i]["Sony"].ToString().Trim()));
MobileSalesChart.Series["Motorola"].Points.Add(new DataPoint(i, ds.Tables[0].Rows[i]["Motorola"].ToString().Trim()));
MobileSalesChart.Series[0].Points[i].AxisLabel = ds.Tables[0].Rows[i]["Year"].ToString().Trim();
}
参考文献