1
0
Fork 0

Condense bars

This commit is contained in:
Gregory Eremin 2015-03-19 15:48:39 +07:00
parent c534fb4534
commit d0d84e6437
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
var Bar = React.createClass({ var Bar = React.createClass({
mixins: [ReactRouter.Navigation, ChartAnimationMixin], mixins: [ReactRouter.Navigation, ChartAnimationMixin],
height: 30, height: 28,
labelPaddingH: 5, // Label horizontal padding labelPaddingH: 5, // Label horizontal padding
labelPaddingV: 2, // Label vertical padding labelPaddingV: 2, // Label vertical padding
labelMarginV: 5, // Same as padding labelMarginV: 4, // Tune text vertical alignment
labelHeight: 16, // Text size labelHeight: 16, // Text size
labelOuterHeight: 20, // labelHeight + 2*labelPaddingV, labelOuterHeight: 20, // labelHeight + 2*labelPaddingV,

View File

@ -3,8 +3,8 @@ var BarChart = React.createClass({
sorts: ['commits', 'delta'], sorts: ['commits', 'delta'],
numElements: 15, numElements: 15,
barHeight: 30, barHeight: 28,
barMargin: 5, barMargin: 4,
words: { words: {
values: { // Sort values: { // Sort