- Welcome, Guest. Please Login or Register
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing. We have released our Java Swing Pack.  
Page Index Toggle Pages: 1 Send Topic Print  
Charting for ASP.NET, V4.0
Read 469 times

Forum Admin   Offline
YaBB Administrator
Posts: 488
Gender: male
Rock and Roll

Charting for ASP.NET, V4.0
Mar 13th, 2017 at 7:32pm
Version 4 of MindFusion.Charting for ASP.NET includes a new design of the library API with following new features:

Client side drawing
Charts are now rendered on client side using HTML5 Canvas API instead of generating bitmaps on server-side. This also enables user interaction: plots can now be scrolled or zoomed, legends can be moved around, colors can change in response to mouse events. In addition, you can load new data into the charts dynamically using client-side JavaScript API.

New data model
Data that should be drawn in charts is read through an interface called Series, whose instances can be assigned to the Series properties of Chart and SeriesRenderer classes. You could implement this interface in your own model classes to avoid duplicating data. Alternatively, if a model class is sealed but provides API to access its data, you could implement the interface in an adapter class. The library includes several pre-defined series classes that let you specify data via IList or array objects. For example, BarSeries lets you specify lists of values, inner labels and top labels, and PointSeries lets you specify data as a list of points. In addition, the DataBoundSeries implementation can be used to automatically read from a .NET data source. Instances of latter series type are automatically generated when chart's DataSource property is set.

New rendering model
Chart graphics are drawn inside Plot components by SeriesRenderer -derived objects. Each plot can contain multiple series renderers from same or different types. For example, you can draw area, line and bar graphics in same plot by adding AreaRenderer, LineRenderer and BarRenderer objects to its SeriesRenderers collection. Concrete Chart classes automatically generate a series renderer of appropriate type for their Series.

The Dashboard control can contain multiple plots, axes, legends, images, gauges and text blocks arranged in dynamic layout. Individual components can be added to dashboard's default RootPanel or LayoutPanel containers, or for more complex layouts add intermediary panels such as GridPanel and StackPanel to the default ones. To show different types of chart graphics, add Plot2D to draw in 2D Cartesian coordinate system, Plot3D for 3D Cartesian system, and PolarPlot for polar coordinate system. To draw horizontal or vertical axes, add respectively XAxisRenderer and YAxisRenderer objects.

Values of appearance properties can come from several places in the component hierarchy. SeriesRenderer -derived objects can use attributes from their local SeriesStyle, from plot's SeriesStyle, or from the *Series properties in current Theme. Component classes use either their local properties or ones defined in the theme. By default, appearance properties in SeriesRenderer and Component classes have null values, which makes the drawing code use values from the theme.

Installer for the latest version can be downloaded here, or from the clients area on our site:

IP Logged    
Page Index Toggle Pages: 1 Send Topic Print