What is wxChartDir
wxChartDir provides components for the integration and use of the commercial C++ library ChartDirector, a universal chart component developed by Advanced Software Engineering Ltd, in wxWidgets based applications.
ChartDirector is an extremely versatile, stable and affordable charting library, that supports many different chart types like pie, donut, bar, line, spline, step line, trend line, curve-fitting, inter-line filling, area, band, scatter, bubble, floating box, box-whisker, waterfall, contour, heat map, surface, vector, finance, gantt, radar, polar, rose, pyramid, cone, funnel and more. Charts can be created as vector graphics in PDF and SVG and as raster graphics in PNG, JPG, GIF and BMP. Please visit the ChartDirector gallery to get an impression of the capabilities of this library.
wxChartDir includes 2 charting controls, wxChartViewer and wxViewPortControl:
- wxChartViewer inherits from wxPanel and ViewPortManager and implements a viewport which can be imagined as a rectangular window of an underlying rectangular surface. For example, a chart that has 10 years of data can be imagined as a very long chart. If one only displays one of the years, it can be said that the viewport covers only 10% of the underlying chart. With the viewport concept, scrolling can be handled as moving the viewport, while zooming in and out can be handled as changing the viewport size.
- wxViewPortControl inherits from wxPanel and from ViewPortControlBase and implements a viewport control which is a user interface element to let the user visualize and manipulate the viewport managed by the ViewPortManager. In typical usage, the viewport control displays an "overall chart" that shows the full data range, and connects to the ViewPortManager (wxChartViewer). It can then include a rectangle on the overall chart to represent the viewport in the ViewPortManager. The region outside the rectangle can be dimmed out to highlight the viewport region. If the viewport is updated (such as if the user uses the mouse wheel to zoom in the chart), the rectangle will also update automatically.
Additionally, wxChartDir contains wxWidgets based versions of all sample applications coming with ChartDirector and of the extra samples available from the ChartDirector website. ChartDirector itself contains versions for QT and MFC.
The wxChartDir release contains all required headers and binaries of the ChartDirector trial version, so that the sample applications can be compiled, linked, and tested without having to download ChartDirector separately. The ChartDirector trial version is fully functional, but adds a banner to the generated graphics.
Feedback is welcome.