Use #addBar() to add an additional barlevel to the bar. The name/ID of the added bar can be used to change the value. Use #setValue(String ID, int value) to change a level value be it's name/ID.
All relevant lines are highlighted. Press the "Run..." button to start the example.