The Charting library

The example below demonstrates pretty much the complete interface of the charting library. This widget is identical to the separate charting example, so it also demonstrates how Object-Oriented widgets can be easily reused in other applications without having to worry about naming conflicts or HTML identifier clashes.

Introduction

This example demonstrates some of the capabilities of the Wt charting widgets. These widgets are implemented using the Wt painting API, which provides cross-browser native painting, using VML, SVG, or the Html 5 canvas tag.

The two main chart widgets are WCartesianChart, which provides category charts and scatter plots, and WPieChart which provides pie charts. These widgets are based on the MVC mechanism, and retrieve their data from a WAbstractItemModel.

Many aspects of the charts may be customized. By default, style information for rendering data series are taken from a WChartPalette. It is straight forward to specialize this class to provide different styles from the standard styles provided by WStandardPalette.

Btw, would you expect this example to work when Ajax/JavaScript are not available or disabled?

Events will be shown here.