Class ChartUtils

java.lang.Object
org.primefaces.util.ChartUtils

public class ChartUtils extends Object
Utilities for Chart components that use chartJs
  • 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 option
      optionName - the name of an option
      value - the value of an option
      hasComma - specifies whether to add a comma at the beginning of the option name
      Throws:
      IOException - if writer named fsw is null