https://github.com/davecom/svgchart
A C++ Library for Making SVG Charts (fork of PPlot)
https://github.com/davecom/svgchart
chart charts charts-svg cplusplus-library plot plotter plotting svg
Last synced: 10 months ago
JSON representation
A C++ Library for Making SVG Charts (fork of PPlot)
- Host: GitHub
- URL: https://github.com/davecom/svgchart
- Owner: davecom
- License: other
- Created: 2019-06-26T04:58:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T14:56:49.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T03:23:18.938Z (11 months ago)
- Topics: chart, charts, charts-svg, cplusplus-library, plot, plotter, plotting, svg
- Language: C++
- Size: 74.2 KB
- Stars: 16
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SVGChart
A C++ Library for Making SVG Charts (fork of PPlot)
## Alpha Quality Software
This is a fork of the [PPlot](http://pplot.sourceforge.net) plotting library. All of its documentation is still relevant. The big change is compliance with modern C++ compilers and a new SVGPainter class that can output SVG files. This project is at an alpha state of completion.
## Compiler Support
This project has been tested with:
- Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0
- gcc (Raspbian 8.3.0-6+rpi1) 8.3.0
- Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27508.1 for x86
## Including in Your Own Software
The easiest thing to do at this stage is just to include the four source files (`PPlot.cpp`, `PPlot.h`, `SVGPainter.cpp`, and `SVGPainter.h`) in your project.
## Examples
Examples are in the `Examples` directory. For now, there is just one example of plotting average temperatures using a line chart. You can check out the code for a sense of how to use SVGChart.

## Test Program
SVGChart comes with a test program that will output eight test SVG charts, and one painting test SVG. Just run `make` (or `nmake` on Windows) and then `./test` (or `test` on Windows) to run them.








## License
MIT License. The original two source files included here from PPlot were released under a very permissive license, which is left in the original source files and now appears in the LICENSE file. Other parts of PPlot, which are not included in this fork, were released under more restrictive licenses.