HomeCommunityControl GalleryCharting ControlsBar ChartsAspose.Report for .NET

Aspose.Report for .NET



Submit a Review

163 Downloads

4,863 Views


Description

Aspose.Report is a .NET query building and charting control allowing developers to quickly add ad hoc capabilities to their .NET applications as well as creating 21 popular chart types having some stylish effects like 3D rendering, transparency, gradients and anti-aliasing. Simply drag and drop the Aspose.Report component on Web or Win form, assign a DataTable object as data source & abstract a variety of outputs including SQL Statements, Filtered Data Objects and many more.

Assortment of Output

Aspose.Report for .NET when placed on a Web form, gives you the option of choosing from a rich assortment of output options which include but are not limited to SQL statement, Select statement, Where statement, Order By statement, RowFilter statement, Filtered DataView, Filtered DataTable or Filtered DataSet etc. In addition to this you can also output to web pages as well as to documents such as Word, Excel and PDF etc. Aspose.Report for .NET when placed on a Win form, provides output options like SQL statement and Filtered DataSet. Aspose.Report for .NET enables your .NET applications to create 21 different chart types including: Area, Bar, Bubble, Contour, Candlestick, Cube, Curve, CurveArea, Doughnut, Gantt, HighLowClose, Line, OpenHighLowClose, Pareto, Pie, Pyramid, Point, Radar, Scatter, Step, Surface, as well as many variants of these types.

Rich User Interface

Aspose.Report for .NET comes bundled with a very rich user interface for Web and WinForms. Web interface allows you to set alias to fields, set fields to be visible/invisible, display human-readable query statement and supports custom CSS style. It also gives you the ability to show SQL statement window, OrderBy statement window, Select statement window and Where statement window. Aspose.Report's WinForms interface gives you the ability to show/hide SQL statement window, serialize the state of the component and restore the serialized state.

Syntax Example

Creating a Chart Object Example [C#] Chart chart = new Chart(); [VB.NET] Dim chart As Chart = New Chart() Creating a Series of Data Points As no book without content is possible, in the same way any chart can only be produced based on series of data points. So the first step you should start with is defining data points. Create at least one series of data points to produce a chart diagram and add points to the DataPoints collection of the Series object. Series also allows to specify a type of the chart. Let's make it Line. It is simple and its each point requires defining one X and one Y values. Example [C#] Series s = new Series(); s.ChartType = ChartType.Line s.DataPoints.Add(1, 56); s.DataPoints.Add(2, 79); s.DataPoints.Add(3, 82); s.DataPoints.Add(4, 67); s.DataPoints.Add(5, 90); s.DataPoints.Add(6, 12); s.DataPoints.Add(7, 79); s.DataPoints.Add(8, 80); s.DataPoints.Add(9, 30); [VB.NET] Dim s As Series = New Series() s.ChartType = ChartType.Line s.DataPoints.Add(1, 56) s.DataPoints.Add(2, 79) s.DataPoints.Add(3, 82) s.DataPoints.Add(4, 67) s.DataPoints.Add(5, 90) s.DataPoints.Add(6, 12) s.DataPoints.Add(7, 79) s.DataPoints.Add(8, 80) s.DataPoints.Add(9, 30) Adding Series to SeriesCollection Now let's add the data series to the chart series collection: Example [C#] chart.SeriesCollection.Add(s); [VB.NET] chart.SeriesCollection.Add(s) Obtaining the Chart Image Example [C#] Bitmap chartBitmap = chart.GetChartImage(); [VB.NET] Dim chartBitmap As Bitmap = chart.GetChartImage() Summary Here's the complete code sample and the resulting Example [C#] Chart chart = new Chart(); Series s = new Series(); s.ChartType = ChartType.Line; s.DataPoints.Add(1, 56); s.DataPoints.Add(2, 79); s.DataPoints.Add(3, 82); s.DataPoints.Add(4, 67); s.DataPoints.Add(5, 90); s.DataPoints.Add(6, 12); s.DataPoints.Add(7, 79); s.DataPoints.Add(8, 80); s.DataPoints.Add(9, 30); chart.SeriesCollection.Add(s); Bitmap chartBitmap = chart.GetChartImage();

Screenshots

Reviews

Submit a review