{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(
'Color bounds',
(
`Number bounds used for color encoding from red to blue.
Reverse the numbers for blue to red. To get pure red or blue,
you can enter either only min or max.`
),
'bounds',
,
)}
{this.formRow(
'Number format',
'Optional d3 number format string',
'd3-format',
,
)}
{this.state.colType === 'spark' && this.formRow(
'Date format',
'Optional d3 date format string',
'date-format',
,
)}