Make Graphs To Display The Data In Graphics?
May 14, 2010Can we Make Graphs To display the data in graphics in asp.net?
View 2 RepliesCan we Make Graphs To display the data in graphics in asp.net?
View 2 RepliesI am developing an school application where i need to show student performance in the form of graph. How can i do this. Is there any tool available to generate graphs. My server admin allows my system to run only at medium trust level.
View 4 Repliesi had draw a graph, however i want to display it. can display it to literal?
below is my coding:
' Create an in-memory bitmap where you will draw the image.
' The Bitmap is 300 pixels wide and 200 pixels high.
myImage = New Bitmap(1200, 1200, pixelFormat.Format48bppRgb)
' Get the graphics context for the bitmap.
g = Graphics.FromImage(myImage)
g.DrawString(I_fault_all2(i), New Font("Verdana", 12, FontStyle.Bold), Brushes.Black, xInterval * i + 50 + (width / 3), 500)
g.DrawString(I_total(i), New Font("Verdana", 12, FontStyle.Bold), Brushes.Black, xInterval * i + 50 + (width / 3), 500 - height - 25)
' Draw the axes
g.DrawLine(Pens.Blue, 30, 10, 30, 500)
' y-axis
g.DrawLine(Pens.Brown, 20, 500, 490, 500)
' x-axis
here is the coding i don't want as display as below, because it will go to a new screen without header and template.
[Code]....
I have looked through the website and google about crystal reports and MVC. It seems that crystal reports does not goes well with MVC framework. Is that true? If that's the case, what is the best solution for me? I am assigned to generate graphs and reports by getting data directly from a database (Oracle) and populate them into a report document. Other than crystal report, what can i use.
Is crystal report capable of generating graphs? or do I need to download other add-ons in order to have a graph generation on my reports.
how to create a bar chart from the values in the arraylist?
View 3 RepliesWhen I am passing dynamic data like below it does not show the Line chart, [URL]....
$.ajax({
type: "POST",
dataType: 'json',
async: false,
url: "wfDashboard.aspx/BindChart",
[Code] ....
I'm using asp.net with vb.net on my web application. I also have an SQL database which I need the 2d graphical "game" page to communicate with. Which programming language would be best for this? The user has to be able to click on an item and retrieve information from the SQL database, I don't know if java can link up with SQL
View 4 RepliesI've uploaded a simple Azure website (am testing out authentication) and have found this:http://mateerweb.cloudapp.net/ (live for next 12 hours or so!)Its supposed to look like this:Problem: How to get the live version looking like the test one on every deploy. After a recompile sometimes it works..
View 1 Repliesi've made a list view to get data from my database. One field of the database is text. How can i make the listview to display only the beggining of my text? Because, now it displays all the text and it does not look good when you enter a large text.. (e.g. displaying the beginning of an article)
View 4 RepliesI have the following list of fonts:I have no issues with using them vianew Font("XXXX Sans", 21, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Pixel)However, what do i do when i need to use a non-standard font style like light? All that is provided is an enumeration and that is not suitable.
View 1 Repliesi am currently using MScharts to display information from my reports...
is there a way i can display the reports in a better way.. using silverlight or something whic is free for commercial use// i want the reports to graphs to just stand out.
how to get the best software to use for the following?
(i) Web graphics: Apart from Photoshop what is the best easy to use program (minimum learning curve)for producing quality drawings suitable for a website?I know that there are many graphic programs around but I want one that is easy to use and produces QUALITY drawings.
(ii) Animations: Similarly I am looking for an easy to use animation program. I have used Flash before but I feel that there is a steep learning curve. Is there a better program out there?
I can remember reading something on this in a book but I can't remember. How do you ensure that certain graphics have been loaded to the users computer before any of the page is rendered?
View 2 RepliesI have a CalendarExtender that links to Textbox. I can get the calendar to appear below the textbox when the textbox is clicked. That works fine. However, when the calendar appears, I can still see other textboxes/labels/etc. along with the month. This isn't right. The month's graphic should be opaque and I shouldn't see other textboxes or labels or whatever was there. As it is it's difficult to see weekday or dates on the calendar since it's being mixed with labels and textboxes. Why is it doing this?
View 2 Repliesi am working on a c#asp.net web page that needs to display a graph. The graph is fairly basic it will show time series data so on the Y axis i will show values between -100 and +100 for 4 lines and on the X axis i wont to show Dates (30 dates in total)
Can anyone recomend a control or way of doing this. (I see there are commercially available controls out there which look great but some cost 000's of dollars i nly need simople good looking line graph)
How to create graphs using crystal reportin ASP.NET C# ??
View 1 RepliesI'm trying to render some text into a specific part of an image in a Web Forms app. The text will be user entered, so I want to vary the font size to make sure it fits within the bounding box.
I have code that was doing this fine on my proof-of-concept implementation, but I'm now trying it against the assets from the designer, which are larger, and I'm getting some odd results.
I'm running the size calculation as follows:
StringFormat fmt = new StringFormat();
fmt.Alignment = StringAlignment.Center;
fmt.LineAlignment = StringAlignment.Near;
fmt.FormatFlags = StringFormatFlags.NoClip;
fmt.Trimming = StringTrimming.None;
[Code]....
Now I have two problems.
Firstly, the text sometimes insists on wrapping by inserting a line-break within a word, when it should just fail to fit and cause the while loop to decrement again. I can't see why it is that Graphics.MeasureCharacterRanges thinks that this fits within the box when it shouldn't be word-wrapping within a word. This behaviour is exhibited irrespective of the character set used (I get it in Latin alphabet words, as well as other parts of the Unicode range, like Cyrillic, Greek, Georgian and Armenian). Is there some setting I should be using to force Graphics.MeasureCharacterRanges only to be word-wrapping at whitespace characters (or hyphens)? This first problem is the same as post 2499067.
Secondly, in scaling up to the new image and font size, Graphics.MeasureCharacterRanges is giving me heights that are wildly off. The RectangleF I am drawing within corresponds to a visually apparent area of the image, so I can easily see when the text is being decremented more than is necessary. Yet when I pass it some text, the GetBounds call is giving me a height that is almost double what it's actually taking.
Using trial and error to set the __minimumSize to force an exit from the while loop, I can see that 24pt text fits within the bounding box, yet Graphics.MeasureCharacterRanges is reporting that the height of that text, once rendered to the image, is 122px (when the bounding box is 64px tall and it fits within that box). Indeed, without forcing the matter, the while loop iterates to 18pt, at which point Graphics.MeasureCharacterRanges returns a value that fits.
The trace log excerpt is as follows:
Decrementing font size to 24, as size is 193×122 and limit is 212×64
Decrementing font size to 23, as size is 191×117 and limit is 212×64
Decrementing font size to 22, as size is 200×75 and limit is 212×64
Decrementing font size to 21, as size is 192×71 and limit is 212×64
Decrementing font size to 20, as size is 198×68 and limit is 212×64
Decrementing font size to 19, as size is 185×65 and limit is 212×64
Writing VENNEGOOR of HESSELINK in DIN-Black at 18pt, size is 178×61 and limit is 212×64
So why is Graphics.MeasureCharacterRanges giving me a wrong result? I could understand it being, say, the line height of the font if the loop stopped around 21pt (which would visually fit, if I screenshot the results and measure it in Paint.Net), but it's going far further than it should be doing because, frankly, it's returning the wrong damn results.
I wanted to build visually stunning graphs and charts ( with some animation, drill-down and interactivity in it) in an existing asp.net application.
The application is build using vs 2008.
Which version of Silverlight will be best suited for this (v3 or v4) ?
What is the best option to create Charts and Graphs and embed it within the existing asp.net application ?
I'm doing a polling application and I am trying to look for the best jquery charts/graphs that I could use on my application to display the results of the polls.
View 4 RepliesI'm trying to rescale uploaded jpeg in asp.netSo I go:
Image original = Image.FromStream(myPostedFile.InputStream);
int w=original.Width, h=original.Height;
using(Graphics g = Graphics.FromImage(original))
{
[code]...
I have been building a report that shows several line graphs where the X axis is TIME.I have put each graph in the group header cell of a table in SSRS.I have tried many things to be able to line up the graphs (get the X axis to line up the same times vertically).I have used the align X-Axis option and it does not seem to work.
View 1 RepliesI am using the following code,
vb Code:
Partial Class _Default Inherits System.Web.UI.Page
Public count As Integer = 0
Protected Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick count += 1
Label1.Text = "You clicked the button " & count.ToString & " times!" End Sub End Class
however, all the page ever displays is "You clicked the button 1 times"
We have an ASP.NET MVC site that uses Entity Framework abstractions with Repository and UnitOfWork patterns. What I'm wondering is how others have implemented navigation of complex object graphs with these patterns. Let me give an example from one of our controllers:
[code]....
It's a registration process and pretty much everything hangs off the POCO class Person. In this case we're caching the person through the registration process. I've now started implementing the latter part of the registration process which requires access to data deeper in the object graph. Specifically DPA data which hangs off Legal inside Country.
The code above is just mapping out the model information into a simpler format for the ViewModel. My question is do you consider this fairly deep navigation of the graph good practice or would you abstract out the retrieval of the objects further down the graph into repositories?
I'm working with a custom DropDownList control in ASP.Net and there's been a request to display certain items in the list with a bold typeface (NOTE - the control inherits from CompositeDataBoundControl so it can be data bound... not DropDownListBox). The control is bound to a table and there's a column in the table named IsUsed - if this is set to true, the corresponding item in the list should be rendered bold. (It should be noted here that this will only ever be viewed in FireFox.)
My experience is all in the middle backend tiers so the presentation layer is very new to me - can someone point me in the right direction? My initial thought was that somewhere in the custom control I would have access to all the rows that are returned from the data source which I could cycle through etc but I'm not sure if that's possible... There's also RenderContents which I can override... looks interesting!
on my page i have a time range printed in the format of 12:00 AM - 12:00 PM i have to display this appropriately for whatever culture the browser supplies. i'm having an issue with arabic (ar-ae): the am/pm indicator seems to change the text ordering for part of the string. the string has the right characters in the right places in memory, but shows them in a different order.
so for my start and end times, i have strings like 03:00 ص and 11:00 مand then i put them together like
string dummytext = t1string + " - " + t2string; when the page is written, the range is displayed as 03:00 ص - 11:00 م i've tried putting each piece in a Label control and wrapping everything in a div with dir="ltr" and haven't made any progress. this is happening in a table cell if it makes any difference.