yuriy-g / simple-java-plot

Simple Java implementation of plot
MIT License
33 stars 9 forks source link

Guide/Directions on how to add labels to lines and data points #5

Closed CJFusion closed 1 year ago

CJFusion commented 1 year ago

I have looked into the code and the resulting graph plots for a short while, and I'm extremely happy with what I could possibly use this for.

But I have been facing difficult on how to add labels to the 1) data points and 2)lines (oriented to match the line angle), I'm not sure on how to modify the project or adding methods to achieve such functionality

CJFusion commented 1 year ago

Never mind I managed to botch the code and got it working, it's a bit buggy but it works Added feature to attach labels to Data points and Lines

Use it at your convenience

Replace the Plot.java file, it's still the same and has the older functionalities as well Provided a LabelSamples.java file to test and display the added functionality

Normally in filePath = ./src/main/java/com/github/plot Plot.zip

Normally in filePath = ./src/test/java/com/github/plot LabelSamples.zip