fix margin bugs in chart page