How To Install libswtchart-java on Debian 10

Learn how to install libswtchart-java on Debian 10 with this tutorial. libswtchart-java is Chart drawing SWT component

Introduction

In this tutorial we learn how to install libswtchart-java on Debian 10.

What is libswtchart-java

libswtchart-java is:

SWTChart is a chart component which has following basic functionalities:

  • line chart
  • scatter chart
  • stack chart
  • log scale
  • category axis
  • multiple axes
  • bar chart
  • area chart
  • step chart
  • axis orientation
  • series label

All of widgets in SWTChart are composed of SWT, so that you can easily hock listeners to widgets, and also you can easily extend the functionality without expertise of AWT.

SWTChart provides an ability to handle large data size of series. Even if showing 1,000,000 data points, repainting or resizing chart panel doesn’t take long time. The internal algorithm is not to simply sample the data with a certain interval but to thin out only the data which doesn’t make sense to show in current screen resolution. Therefore, even if there are prominent peaks in large data points, the peaks won’t be lost in the screen.

SWTChart has minimum basic functionalities. SWTChart doesn’t have any dependencies other than SWT, and even JFace is not required.

There are three methods to install libswtchart-java on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libswtchart-java Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libswtchart-java using apt-get by running the following command:

sudo apt-get -y install libswtchart-java

Install libswtchart-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libswtchart-java using apt by running the following command:

sudo apt -y install libswtchart-java

Install libswtchart-java Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libswtchart-java using aptitude by running the following command:

sudo aptitude -y install libswtchart-java

How To Uninstall libswtchart-java on Debian 10

To uninstall only the libswtchart-java package we can use the following command:

sudo apt-get remove libswtchart-java

Uninstall libswtchart-java And Its Dependencies

To uninstall libswtchart-java and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libswtchart-java

Remove libswtchart-java Configurations and Data

To remove libswtchart-java configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libswtchart-java

Remove libswtchart-java configuration, data, and all of its dependencies

We can use the following command to remove libswtchart-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libswtchart-java

Dependencies

libswtchart-java have the following dependencies:

References

Summary

In this tutorial we learn how to install libswtchart-java package on Debian 10 using different package management tools: apt, apt-get and aptitude.