Package org.primefaces.util
Class ChartUtils
- java.lang.Object
-
- org.primefaces.util.ChartUtils
-
public class ChartUtils extends Object
Utilities for Chart components that use chartJs
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteDataValue(Writer fsw, String optionName, Object value, boolean hasComma)Write the value of chartJs options
-
-
-
Method Detail
-
writeDataValue
public static void writeDataValue(Writer fsw, String optionName, Object value, boolean hasComma) throws IOException
Write the value of chartJs options- Parameters:
fsw- a writer object that use to write the value of an optionoptionName- the name of an optionvalue- the value of an optionhasComma- specifies whether to add a comma at the beginning of the option name- Throws:
IOException- if writer named fsw is null
-
-