| | |
| | | if(i > 0){ |
| | | sb.append(","); |
| | | } |
| | | line(sb, MessageFormat.format("'{'data : [ [0, {0}] ], label : ''{1}'', color: ''{2}'' '}'", Float.toString(value.value), value.name, StringUtils.getColor(value.name))); |
| | | line(sb, MessageFormat.format("'{'data : [ [0, {0}] ], label : \"{1}\", color: ''{2}'' '}'", Float.toString(value.value), value.name, StringUtils.getColor(value.name))); |
| | | } |
| | | line(sb, "]"); |
| | | |
| | | // Add the options |
| | | line(sb, ", {"); |
| | | line(sb, MessageFormat.format("title : ''{0}'',", title)); |
| | | line(sb, MessageFormat.format("title : \"{0}\",", title)); |
| | | line(sb, "fontSize : 2,"); |
| | | line(sb, "pie : {"); |
| | | line(sb, " show : true,"); |