Added support for up to 31 bars
Fixed for new graphPanel implementation