Chart column in asp.net repeater/list view / data grid? - asp.net

I am new to ASP.Net.
How can I add a chart column in an asp.net repeater/list view / data grid (whatever possible)?
I want to feed the chart with data from a dataSet.
Please can somebody through light on this?

Before you try to get a chart in a Repeater/ListView, I'd suggest first ensuring that you can have a single chart display on a page.
Have you already selected a charting library? Microsoft's Chart Controls are a free option if you are using ASP.NET 3.5 SP1 or beyond. They have a bit of a learning curve, but can be used to plot the data from a DataSet.
I'd suggest you start by familiarizing yourself with the Microsoft Chart Controls and once you are comfortable with them I think you'll find them easy enough to add to a ListView/Repeater... if not, you can come back and update your question specifying the problems you're having.
For further information check out: Using Microsoft's Chart Controls in an ASP.NET Application.

Related

Line graph in ASP.NET using Datasource

I am somewhat a beginner in ASP.NET (C#), and I would like to know if it is feasible to draw a line chart of a time-series using data from a SQL table (SQL Server).
I haven't found any control that allows for a drawing of a time-series (i.e. Time as X-axis variable).
Also, I would like for the user to be able to hover over the chart and see data, as demonstrated in the following link:
link
Could anyone please enlighten me as to what is the best way to achieve such a result?
Thank you!
You have quite a few options, Reporting Services provides all sorts of graph and charting mechanisms. A personal favourite of mine is JQPlot. The bonus of the latter is that it's free!
Have you tried the Microsoft Chart controls.
have a look at ScottGU Blog here
I have used it and it works really well. The best part is that itès free ;)
HTH

Gantt Chart for Asp.Net Web forms application

We are researching for product to use in our enterprise application based on Asp.Net Web forms.
The main points are as fellow:
Display Gantt View without the Task List.
Allow dynamic scale (Week/Month/Year)
Gantt chart will show Actions. Each Action has Planned Start date/ End Date, Forecast Start date/ End Date, Actual Start date/ End Date. We need to show each action as group. At top will be action name, below it a bar for Planned, Forecast and Actual dates.
Provide paging if data is huge.
Please let us know, if it is possible to achieve the requirement stated above.
Thks
Hafeez
Disclaimer first: this is a vendor-biased answer as I represent a company that is specialized in developing Gantt chart controls. Your above mentioned requirements can be achieved with our Gantt chart software control called VARCHART XGantt is also available as ASP.NET Edition.
Please have a look and let me know your thoughts.
If you like what you see, please send an email to sales#netronic.com and refer to this stackoverflow discussion: we are happy to prove our capabilities with a free-of-charge rapid prototype.
regards,
Martin

c# visifire(charts)

I have developed one silverlight application on .net framework and used visifire for charting i.e. getting updated through MS SQL database.
The main thing is that when i am updating the database the data on chart are getting affected, but the look and feel of the chart is not happening smoothly during the value change.
I have used <vc:DataSeries RenderAs="QuickLine" DataSource="{Binding ItemsSource, ElementName=MyGrid}" > for quickline presentation of the data on graph.
So what changes I have to make in my programm for smooth change in graph statistics after database updation.
"but the look and feel of the chart is
not happening smoothly during the
value change"
What is your expected output and what is the current output? Please explain more in detail. Which version of Visifire you are using? Exactly how you are updating the ItemsSource property? Can you provide C# code and XAML?

Adding Images to an ASP .Net Chart Control

I'm not sure if I titled the question correctly so it would be better if I explained what I'm trying to do. I am using the ASP .Net Chart Control to create a line chart showing numbers of trouble calls based on date. What I would like to do is implement a way of annotating the chart with data whereas if there was a spike in trouble calls a line, or asterisk, etc would direct the viewer to "read notes below for an explanation for why the numbers spiked here".
From the samples for the chart control there is a way you can add a bitmap to the chart, however I don't see how that will be effective here because the explanations will come dynamically from a database.
If anyone's done something like this or has some guidance I'd appreciate it.
Thanks!
I don't know that that's possible with an ASP.NET Chart control. Based on your explanation, it sounds like you could add the notes below the chart for a pretty reasonable solution. Just reference the spikes or anomalies by writing the proper date next to each note.

Where would I get Microsoft Chart Control sample codes?

Can anyone please tell me where would I get Microsoft Chart Control sample codes ?
Link will be sufficient.
Link --> http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
These samples demonstrate how to use the following features in Microsoft Chart Controls for .NET Framework:
All supported chart types.
Data series, chart areas, axes, legends, labels, titles, and more.
Data Binding
Data manipulation, such as copying, splitting, merging, alignment, grouping, sorting, searching, filtering, and more.
Statistical formulas and financial formulas.
Advanced chart appearance, such as 3D, anti-aliasing, lighting, perspective, and more.
Chart rendering.
Events and Customizations.
Interactivity and AJAX.
http://code.msdn.microsoft.com/mschart
http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
if your talking about the ASP.Net Chart controls you can download the demos from http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
http://archive.msdn.microsoft.com/mschart

Resources