{this.formRow(
'Label',
'The column header label',
'time-lag',
,
)}
{this.formRow(
'Tooltip',
'Column header tooltip',
'col-tooltip',
,
)}
{this.formRow(
'Type',
'Type of comparison, value difference or percentage',
'col-type',
,
)}
{this.state.colType === 'spark' && this.formRow(
'Width',
'Width of the sparkline',
'spark-width',
,
)}
{this.state.colType === 'spark' && this.formRow(
'Height',
'Height of the sparkline',
'spark-width',
,
)}
{['time', 'avg'].indexOf(this.state.colType) >= 0 && this.formRow(
'Time Lag',
'Number of periods to compare against',
'time-lag',
,
)}
{['spark'].indexOf(this.state.colType) >= 0 && this.formRow(
'Time Ratio',
'Number of periods to ratio against',
'time-ratio',
,
)}
{this.state.colType === 'time' && this.formRow(
'Type',
'Type of comparison, value difference or percentage',
'comp-type',
,
)}
{this.state.colType !== 'spark' && this.formRow(
'Bounds',
(
'Number bounds used for color coding from red to green. ' +
'Reverse the number for green to red. To get boolean ' +
'red or green without spectrum, you can use either only ' +
'min, or max, depending on whether small or big should be ' +
'green or red.'
),
'bounds',
,
)}
{this.formRow(
'D3 format',
'D3 format string',
'd3-format',
,
)}