Getting Started
Get the source code
The wxCharts library is only distributed in source code form. We believe this is the most convenient method for everyone since wxCharts is easy to build and a source distribution also allows users to select the compiler and compilation options they desire. The wxCharts source code is stored in a GitHub repository at https://github.com/wxIshiko/wxCharts.
Go to the wxCharts GitHub repository
In the remainder of this page we will refer to the location where the source code was downloaded as <wchartsroot>.
Build the library
The build directory contains makefiles for the supported compilers. If your desired platform or compiler is not available please raise it as an issue at https://github.com/wxIshiko/wxCharts/issues.
Windows build using Visual Studio
Linux build using make
Set the WXCHARTS environment variable
All the examples assume that the WXCHARTS environment variable has been set and contains the directory where the wxCharts source code has been downloaded. The same variable can be used in your application to specify the location of the wxCharts header files and compiled library.
Using the library
Header files
Applications that use the wxCharts library need to add the <wchartsroot>/include directory to their include path. Once that is done they can either include the wx/wxcharts/wxcharts.h file which includes everything or just those charts they actually need by including specific header files e.g. wx/wxcharts/wxpiechartctrl.h for the wxPieChartCtrl control.
Library
Applications that use the wxCharts library need to add the <wchartsroot>/lib directory to their library search path.