Web Forms :: Incorrect Values Displayed In Graph?
May 3, 2010I'm using WebChart Control to create a line graph, which gets data from a DataSet. I display the table above the graph and the values differ?
View 1 RepliesI'm using WebChart Control to create a line graph, which gets data from a DataSet. I display the table above the graph and the values differ?
View 1 RepliesI been stack for the last few days trying to figure out the SilverLight 4 LineSeries graph, for some strange reason the graph being displayed but the line not being displayed. I am pretty sure that my mistake is something very basic but I been straggling to pinpoint the problem by myself.Bellow is the code that I having problem with.
<toolkit:Chart HorizontalAlignment="Left" x:Name="chartLine" Margin="31,35,0,0" Title="Chart for test" VerticalAlignment="Top" Height="233" Width="309">
<toolkit:LineSeries IsSelectionEnabled="True" HorizontalAlignment="Left" DependentValuePath="Y" IndependentValuePath="X" [code]....
I am creating a bar graph and line graph. I am using 2 dropdown list for the date and category. The user can chose the date and category that he want to view. I also have a upload button for the user to upload the excel file and dispaly the data in girdview.
However i have error whenever i want to view the graphs.. I have upload my code in the attachment. Pls take a look. I do the coding invb.
[code]....
I am stuck here with the color for the graph values i want to give custom colors for each values present in the graph, is it possible in SSRS2000.
Problem Statement : Suppose if i want to display two data fields as bar graph
Data Fields are : Vegetable Count and Fruits Count
I want Vegetable count to be in Blue Colour and I want Fruits count to be in green colour.
my web Form contain Gridview : when i click the button woth ID="IncreaseButton" , i have problem is : The Initial price = 334,7 now When i click button to Increase the price with 1.5 , i got this value :
3347000,0000 wich incorrect
this is the code
<asp:GridView id="ProductsGridView"
DataSourceID="ProductsDataSource"
DataKeyNames="ProductID"
AllowPaging="True"
SelectedRowStyle-CssClass="selectedRow"
CssClass="gridView"
OnRowCommand="ProductsGridView_RowCommand"
AutoGenerateColumns="False"
runat="server">
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:BoundField DataField="Productid" HeaderText="Product ID" />
<asp:BoundField DataField="Name" HeaderText="Product Name" />
<asp:BoundField DataField="ProductNumber" HeaderText="Product Number" />
<asp:TemplateField HeaderText="Price">
<ItemTemplate>
<asp:Label ID="PriceLabel" runat="server"
Text='<%# Bind("ListPrice") %>'>
</asp:Label>
<asp:Label ID="Label2" runat="server"
Text='<%# Bind("ListPrice") %>' Visible="true" >
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Button runat="server" ID="IncreaseButton"
Text="Increase Price 5%"
CommandName="Increase"
CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
I have created a .rdlc report and added the needed fields using dataset. I have fields id, name, dept, design when I preview the data in the dataset I get data in all the fields but in the actual report. I am not able to get id & design though i have stated the expression for the same...
View 1 RepliesI am using asp.net charts in my application, i have given the axis values from code behind. I added the on page load but the problem when i go directly to that page the graph will not appear but if i reload the same page it will appeare. this happens when i publish the application and try on IIS, but there is no problem before publish (while run in VS).
View 1 RepliesThe values in one of the fields in my GridView's table are just either a zero or a one or a null. Well, "zero," "one," and "" are not very appropriate values to display to the end user. Is there a way I could change these to "True"/"False"/"NA" or "Yes"/"No"/"NA"?
View 5 RepliesI have a strange problem with some float values that I pass to an Insert Query.
Example : If I pass in float value "1.4", the value stored in the Database is "1.399999976158141". The DataColumn is of type float.
I pass the float values as parameters to the query using "AddwithValue".
I have a MasterPage and a ContentPage. On the ContentPage I Similated a TabControl by using a Menu and an IFrame. When the menu item is seleceted it loads in the appropriate WebPage into the IFrame. Now... on one of the WebPages I am creating dynamic controls on Page_Load. But when I refresh or switch menu (Simulated TabControl) back and forth, then I lose my controls and values.
View 4 RepliesI have to desing line chart graph in .rdlc report, can you please help me, i have decimal values on Y-Axis and date time values on X-Axis , i have two series of product, according to product value during specific time i need to display line graph for each product.please do needfull to me.
View 2 RepliesI am having a "TextBox" a "Label" and a "Button" in my aspx page. If I enter some values into the textbox, then that value should be displayed in the label...and again I enter some values in the same text box, that value should be displayed without disturbing the first value and so on...
View 1 RepliesI've created a gridview and one of the columns displays a field called "usegolive". In the table this value is either 1 or 0.I'd love to know how to convert this so it's displayed as either "yes" or "no" without loosing the underlying values. Seems fairly straightforward but I cant figure it out.
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("usegolive") %>'></asp:Label>
</ItemTemplate>
I am working with a sql server database with about 50 stored procedures. The database and stored procedureswere not created by me. The stored procedures all begin with a number in their name.
Example: 17P_Comsetter
The problem I am having is that if I try and execute the stored procedure at the command line in Query Analyzer,the query analyzer appears not to like that the stored procedure begins with a number. For example:
If I try an run the stored procedure as follows:
EXEC 17P_Comsetter
Then I get the following error message:
Msg 102, ..... Incorrect Syntax near '17'
I am using SQL server 2005. Does anyone know why I am getting this error message?
I've got a Varchar2 field in my table which I want to convert to a CLOB. I am unsure whether the data would get truncated when selected. If so, what is the limit and does it depend on the database settings?
In my TOAD or SQLPLUS window it gets truncated but this may just be the environment settings. I'm not sure whether it would get truncated in my actual application (I can test this, but up to what size should I test?)
If it does get truncated, what's the best way to display the whole CLOB? There are other fields in my SELECT query, so I think I can't just loop through multiple rows. Is there any way out?
I have a web application which will write a set of values returned from
View 4 Replieshow to show data in bar graph format in asp.net.
View 3 RepliesI have Bar Chart with two Series on X axis one for Month and Other for Productvalue now if the product value is Zero then nothing is displaying on graph is there any way to show the atleast value of the product as integer Zero.
View 3 RepliesI cant even seem to start. i drag the chart icon into the ground and then the sqldatasource. tie them too together. and then im completely lost. i tried tieing x&y values with sum,customer name but they just arent working correctly
View 1 RepliesI have an arraylist that contains some values. (e.g. playerName). I also queried for values in the database (e.g. playerName, playerSales) and I need to match the playerName in the arraylist to the corresponding ones that I did a query from the database. (match those with the same playerName). From there, I need to create a bar graph with the respective playerName and their sales (playerSales).
A portion of the code is shown below:
[Code]....
The arraylist I mentioned was saved to a session to be used in another page. Is my code right? And how can I create the graph from the values?
I have a gridview on a web page as shown below
[Code]....
On checking the checkbox, the user will actually be selecting the products that he/she wants. The selected products will be stored in an arraylist by using a foreach loop through the gridview. The arraylist will then be saved to a session before being redirected to another page. (a button will be clicked after the selection of products to proceeed to another page)
On the redirected page, a bar graph needs to be generated based on the products selected previously and also the product sales (this is retrieved from the database).
How can I generate this bar graph without having to code the whole graph out?
i want to show report in graphical formate of data which is stored in sql server.
View 1 RepliesI have a web page where a GridView will be shown with a column of different products and another column with checkboxes. Checking on the checkboxes will be equivalent to selecting the products. The selected products are saved to an arraylist. Then, the user has to click on a button located on the same page to analyze the selected products. On clicking the button, he/she will be directed to another page where a bar graph will be shown. The bar graph will be the result of having analyzed the products. How do I create the bar graph where the products are taken from the arraylist but I can make use of the datasource within the chart control to retrieve more detailed info(such as product sales) from the database, taking into account the products from the arraylist?
View 3 Repliesin developing charts(graphs in vb.net with asp.net ), i am not finding graph controls in my environment.
View 1 RepliesWe have a requirment to draw a graph (line or bar), where the data will be changed 40 to 50 times in second , we want to refresh data automatically.
Which chart component should we use for drawing graph and how do i make sure that the data will be refreshed very fast on the graph web page.