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

  1. Added SVG Template Export Option

  2. Extending the Export Setting Dialog Box for Series Selection

  3. 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-

  1. LineSeries Chart

  2. BarSeries Chart

  3. ScatterSeries Chart

PRs for addtion of LineChart to the Template Export-

  1. Pull Request 1

  2. Pull Request 2

PRs for addition of BarChart to the Template Export-

  1. Pull Request 1

PRs for addition of ScatterChart to the Template Export-

  1. Pull Request 1

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-

  1. Pull Request 1

  2. Pull Request 2

  3. Pull Request 3

  4. Pull Request 4

  5. Pull Request 5

Here are some final sample exports showcasing the template export at work-

Future work and improvements may include the following-

  1. Find a way to remove the Hard Coded Coordinates for better code readability

  2. 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-

  1. Pull Request 1

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-

  1. Pull Request 1

  2. Pull Request 2

  3. Pull Request 3

Here are the screenshots for the improvements

Contact information-

Name- Yash Bharatiya

Mail- yashbharatiya@gmail.com

Github- https://github.com/yashTEF