Package org.primefaces.util
Class ChartUtils
java.lang.Object
org.primefaces.util.ChartUtils
Utilities for Chart components that use chartJs
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeDataValue
(Writer fsw, String optionName, Object value, boolean hasComma) Write the value of chartJs options
-
Method Details
-
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
-