Date curDate = getChartModel().getStartDate();
final int topUnitHeight = getChartModel().getChartUIConfiguration().getSpanningHeaderHeight();
boolean firstWeekendDay = true;
for (int i=0; i<getChartModel().getBottomUnitOffsets().size(); i++) {
Offset nextOffset = (Offset) getChartModel().getBottomUnitOffsets().get(i);
TimeUnitText timeUnitText = nextOffset.getOffsetUnit().format(curDate);
String unitText = timeUnitText.getText(-1);
int posY = 2*topUnitHeight - 5;
GraphicPrimitiveContainer.Text text = myPrimitiveContainer.createText(curX + 2, posY, unitText);
myPrimitiveContainer.bind(text, timeUnitText);
text.setMaxLength(nextOffset.getOffsetPixels() - curX);
text.setFont(getChartModel().getChartUIConfiguration().getSpanningHeaderFont());