public String encode() throws IOException {
        FastStringWriter fsw = new FastStringWriter();

        try {
            ChartUtils.writeDataValue(fsw, "radius", this.radius, false);
            ChartUtils.writeDataValue(fsw, "pointStyle", this.pointStyle, true);
            ChartUtils.writeDataValue(fsw, "backgroundColor", this.backgroundColor, true);
            ChartUtils.writeDataValue(fsw, "borderWidth", this.borderWidth, true);
            ChartUtils.writeDataValue(fsw, "borderColor", this.borderColor, true);
            ChartUtils.writeDataValue(fsw, "hitRadius", this.hitRadius, true);
            ChartUtils.writeDataValue(fsw, "hoverRadius", this.hoverRadius, true);
            ChartUtils.writeDataValue(fsw, "hoverBorderWidth", this.hoverBorderWidth, true);
        }
        finally {
            fsw.close();
        }

        return fsw.toString();
    }
public String encode ( ) throws IOException { FastStringWriter fsw = new FastStringWriter ( ) ; try { ChartUtils . writeDataValue ( fsw , "radius" , this . radius , false ) ; ChartUtils . writeDataValue ( fsw , "pointStyle" , this . pointStyle , true ) ; ChartUtils . writeDataValue ( fsw , "backgroundColor" , this . backgroundColor , true ) ; ChartUtils . writeDataValue ( fsw , "borderWidth" , this . borderWidth , true ) ; ChartUtils . writeDataValue ( fsw , "borderColor" , this . borderColor , true ) ; ChartUtils . writeDataValue ( fsw , "hitRadius" , this . hitRadius , true ) ; ChartUtils . writeDataValue ( fsw , "hoverRadius" , this . hoverRadius , true ) ; ChartUtils . writeDataValue ( fsw , "hoverBorderWidth" , this . hoverBorderWidth , true ) ; } finally { fsw . close ( ) ; } return fsw . toString ( ) ; }
Write the point options of Elements

@return options as JSON object
@throws java.io.IOException If an I/O error occurs