Interface Chart
public interface Chart
-
Method Summary
Modifier and TypeMethodDescriptionid()static StringmakeIdUnique(String id) It is not possible to guarantee that an ID we generate in the Java code will be unique in the HTML page without making the Java code complex enough to track those IDs.title()voidwriteToFile(Path parentFolder) xLabel()yLabel()
-
Method Details
-
makeIdUnique
It is not possible to guarantee that an ID we generate in the Java code will be unique in the HTML page without making the Java code complex enough to track those IDs. For that reason, we take a human-readable ID and make it unique by appending a random number.- Parameters:
id- never null- Returns:
- never null, guaranteed to be unique
-
id
String id() -
title
String title() -
xLabel
String xLabel() -
yLabel
String yLabel() -
writeToFile
-