【发布时间】:2017-03-02 20:34:03
【问题描述】:
我想在 c# 中使用 jquery 在仪表板上显示实时连接的呼叫。以不同中心的连接呼叫为例。所以让我知道我可以在电话中显示现场工作..
提前谢谢..
这段代码试过了..
string str_caption = "Month Wise Sales";
string str_Sub_caption = "No Of Sales";
string x_axis = "Month";
string y_axis = "No. Of Sales";
string str_xml = null;
str_xml = @"<graph caption='" + str_caption + @"' subCaption='" + str_Sub_caption + @"' decimalPrecision='0'
pieSliceDepth='30' formatNumberScale='0' xAxisName='" + x_axis + @"' yAxisName='" + y_axis + @"' rotateNames='1' >";
int i = 0;
foreach (DataRow dr in dt.Rows)
{
str_xml += "<set name='" + dr[0].ToString() + "' value='" + dr[1].ToString() + "' color='" + color[i] + @"' "
+ " link="JavaScript:myJS('" + dr["x_month"].ToString() + ", " + dr["no_of_sales"].ToString() + "'); "/>";
i++;
}
str_xml += "</graph>";
FCLiteral1.Text = FusionCharts.RenderChartHTML("Bootstrap/FusionCharts/FCF_Doughnut2D.swf", "", str_xml, "mygraph1",
graph_width, graph_height, false);
这是aspx代码..
<asp:Literal ID="FCLiteral1" runat="server"></asp:Literal>
【问题讨论】:
-
到目前为止你尝试过什么?显示您的代码并解释您遇到的确切问题。
-
我试过这个。我已被处决,但想通过 jquery 显示。 dotnetfox.com/articles/…
-
我已经通过这个链接完成了。 dotnetfox.com/articles/…
标签: javascript c# jquery asp.net