You just have to define multiple rules for all circumstances you want to have a special color and/or define a rule for all "others":
- oVizFrame.setVizProperties({
- plotArea : {
- dataPointStyle : {
- rules : [
- {
- callback : oRule,
- properties : {
- color : "red"
- },
- displayName : "customName"
- } ,
- {
- callback: oRule2,
- properties: {
- color: "green"
- },
- displayName: "customName2"
- }
- ],
- others: {
- properties: {
- color: "yellow"
- }
- }
- }
- }
- });
If it doesn't work, you can give me an example on jsfiddle