Google Summer of Code
Project Details and Work done during the GSoC 2020 programme
About The Project
Eclipse SWTChart - Extending The Export Options
See Eclipse SWTChart on Eclipse, Github
See this project on Google Summer of code
Mentor - Philip Wenig
Project Accomplished Milestones
-
Added SVG Template Export Option
-
Extending the Export Setting Dialog Box for Series Selection
-
Perfomance Improvement in R-Script Export
SVG Export via Inkscape Template
SVG or Scalable Vector Graphics file is a popular export option when exporting as images mainly due to its property of retaining quality when resized (i.e. resolution is changed). The above property makes SVG files appropriate for images that contain high details like plots and graphs.
SWTChart now supports an option to be exported to (.svg) format using this lightweight Template Export Option which has no dependancy to any external library and is much more efficient when exporting multiple series.
An Inkscape Template along with the exporting option was added for each of the following types of chart-
-
LineSeries Chart
-
BarSeries Chart
-
ScatterSeries Chart
PRs for addtion of LineChart to the Template Export-
PRs for addition of BarChart to the Template Export-
PRs for addition of ScatterChart to the Template Export-
The above changes added the SVG Template Export option to SWTChart, However, there were further changes needed for optimized and efficient working of the export option
Following were the PRs related to issues and bug fixing and further optimization-
Here are some final sample exports showcasing the template export at work-
Future work and improvements may include the following-
-
Find a way to remove the Hard Coded Coordinates for better code readability
-
Adding Symbols, Symbol Size and LineStyles to the exported series
Extending the Export Settings Dialog for Series Selection
The Export Settings Dialog was enhanced and improve to support runtime selection of series to be exported in various export.
This allows user to easily change the series selection and control the visibility of a series in the export
PR for the change-
A screenshot of the feature
Performance Improvement in R-Script Export Option
There were improvements in R-Script regarding styling , addition of different symbols and improvement in the scatter plot.
PRs for the above changes-
Here are the screenshots for the improvements
Contact information-
Name- Yash Bharatiya
Mail- yashbharatiya@gmail.com
Github- https://github.com/yashTEF