Ajax条形图不在asp.net中显示 [英] Ajax Bar Chart not display in asp.net

查看:82
本文介绍了Ajax条形图不在asp.net中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,我在使用ajax抨击条形图时遇到了一些问题。我正在尝试使用ajax显示条形图但不显示。我也尝试用另一种方式进行动态但失败所以请尽快给我解决方案。我的代码如下: -



感谢高级!!







 <   ajaxToolkit:BarChart     ID   =  BarChart1    runat   =  server  

ChartHeight = 300 ChartWidth = 450 ChartType = < span class =code-keyword>列

ChartTitle = 美国与欧洲小工具生产

CategoriesAxis = 2007,2008,2009,2010,2011,2012

ChartTitleColor = #0E426C CategoryAxisLineColor = #D08AD9

ValueAxisLineColor = #D08AD9 BaseLineColor = # A156AB >
< 系列 >
< ajaxToolkit:BarChartSeries 名称 = U nited States BarColor = #6C1E83

数据 = 110,189,255,95,107,140 / >
< ajaxToolkit:BarChartSeries 名称 = Europe BarColo r = #D08AD9

数据 = 49,77,95,68,70,79 / >
< / Series >
< / ajaxToolkit:BarChart >

解决方案

似乎你没有具体安装ajax控件工具包。请转到 http://ajaxcontroltoolkit.codeplex.com/ [ ^ ]并按照那里给出的说明操作。



使用nuget或手动安装ajax工具包后



在顶部注册AjaxControlToolkit页面(或整个项目的web.config)



 <% @    注册    TagPrefix   =  asp   命名空间  =  AjaxControlToolkit   程序集  =  AjaxControlToolkit %>  



现在,添加一个ToolkitScriptManager并使用一些控件!

 <   asp:ToolkitScriptManager  < span class =code-attribute>   runat   = 服务器    /  > ;  

< asp:barchart id = BarChart1 runat = server >
ChartHeight =300ChartWidth =450ChartType = 专栏
ChartTitle =美国与欧洲小工具生产
CategoriesAxis =2007,20 08,2009,2010,2011,2012
ChartTitleColor =#0E426CCategoryAxisLineColor =#D08AD9$ ​​b $ b ValueAxisLineColor =#D08AD9BaseLineColor =#A156AB>
< 系列 >
< asp:barchartseries 名称 = 美国 barcolor = #6C1E83 >
Data =110,189,255,95,107,140/>
< asp:barchartseries 名称 = 欧洲 barcolor = #D08AD9 >
数据=49,77,95,68,70,79/>
< / asp:barchartseries > < / asp:barchartseries > < / series >
< / asp:barchart > < / asp:textbox >


Dear Friend,I have some problem when implimenting bar chart using ajax.I am trying to display bar chart using ajax but not display.I also trying to another way by dyanamically but failed so please give me solution as soon as possible.My code as follows:-

Thanks in Advanced !!



<ajaxToolkit:BarChart ID="BarChart1" runat="server"

ChartHeight="300" ChartWidth="450" ChartType="Column"

ChartTitle="United States versus European Widget Production"

CategoriesAxis="2007,2008,2009,2010,2011,2012"

ChartTitleColor="#0E426C" CategoryAxisLineColor="#D08AD9"

ValueAxisLineColor="#D08AD9" BaseLineColor="#A156AB" >
<Series>
    <ajaxToolkit:BarChartSeries Name="United States" BarColor="#6C1E83"

    Data="110, 189, 255, 95, 107, 140" />
    <ajaxToolkit:BarChartSeries Name="Europe" BarColor="#D08AD9"

    Data="49, 77, 95, 68, 70, 79" />
</Series>
</ajaxToolkit:BarChart>

解决方案

it seems you haven't install ajax control toolkit concretely. please go to http://ajaxcontroltoolkit.codeplex.com/[^] and follow the instructions given there.

after installing ajax tool kit by using nuget or manually

Register the AjaxControlToolkit at the top of the page (or in the web.config for the whole project)

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>


Now, add a ToolkitScriptManager and use some of the controls!

<asp:ToolkitScriptManager runat="Server" />

<asp:barchart id="BarChart1" runat="server">
ChartHeight="300" ChartWidth="450" ChartType="Column"
ChartTitle="United States versus European Widget Production"
CategoriesAxis="2007,2008,2009,2010,2011,2012"
ChartTitleColor="#0E426C" CategoryAxisLineColor="#D08AD9"
ValueAxisLineColor="#D08AD9" BaseLineColor="#A156AB" >
<series>
    <asp:barchartseries name="United States" barcolor="#6C1E83">
    Data="110, 189, 255, 95, 107, 140" />
    <asp:barchartseries name="Europe" barcolor="#D08AD9">
    Data="49, 77, 95, 68, 70, 79" />
</asp:barchartseries></asp:barchartseries></series>
</asp:barchart></asp:textbox>


这篇关于Ajax条形图不在asp.net中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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