Bubble chart

Hi I am a Newbie, working on vaadin charts,
Is it possible to change the color of bubbles based on sizes or other criteria?
I have a report basically bubbles falling in three categories on sizes, based on that i want to fix color for them.
like blue bubbles if sizes are within a range similary with yellow and red.

Thanks in Advance

I found it,
I created three data series ,based on the size i added bubbles to the series.
if(z<50)
dataSeries1.add(x,y,z);
else if (z>=50 )
dataSeries2.add(x,y,z);

 then i added color through plot options  

PlotOptionsBubble opts1 = new PlotOptionsBubble();
opts1.setColor(new VaadinTheme().getColors()[1]
);
dataSeries1.setPlotOptions(opts1);
conf.setPlotOptions(opts1);

PlotOptionsBubble opts2 = new PlotOptionsBubble();
opts2.setColor(new VaadinTheme().getColors()[2]
);
dataSeries2.setPlotOptions(opts2);
conf.setPlotOptions(opts2);