зеркало из https://github.com/microsoft/SandDance.git
Extend column types dialog (#615)
* add Type and HasColorData to column types dialog * version patch * handle dates when color parsing hex codes * check color for Date type
This commit is contained in:
Родитель
392b42fbb5
Коммит
3948c3ef72
|
@ -161,7 +161,9 @@ function _ColumnTypeChanger(_props: Props) {
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{strings.labelColumnName}</th>
|
<th>{strings.labelColumnName}</th>
|
||||||
|
<th>{strings.labelColumnType}</th>
|
||||||
<th>{strings.labelColumnDistinct}</th>
|
<th>{strings.labelColumnDistinct}</th>
|
||||||
|
<th>{strings.labelColumnHasColorData}</th>
|
||||||
<th>{strings.labelColumnIsColorData}</th>
|
<th>{strings.labelColumnIsColorData}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -169,7 +171,9 @@ function _ColumnTypeChanger(_props: Props) {
|
||||||
{state.categoricalColumns.map((c, i) => (
|
{state.categoricalColumns.map((c, i) => (
|
||||||
<tr key={i}>
|
<tr key={i}>
|
||||||
<td>{c.name}</td>
|
<td>{c.name}</td>
|
||||||
|
<td>{c.type}</td>
|
||||||
<td>{c.stats.distinctValueCount}</td>
|
<td>{c.stats.distinctValueCount}</td>
|
||||||
|
<td>{(!!c.stats.hasColorData).toString()}</td>
|
||||||
<td>{(!!c.isColorData).toString()}</td>
|
<td>{(!!c.isColorData).toString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -81,7 +81,9 @@ export const strings = {
|
||||||
labelChartSettings: 'Chart settings',
|
labelChartSettings: 'Chart settings',
|
||||||
labelEditColumn: 'Edit',
|
labelEditColumn: 'Edit',
|
||||||
labelColumnName: 'Column name',
|
labelColumnName: 'Column name',
|
||||||
|
labelColumnType: 'Column type',
|
||||||
labelColumnDistinct: 'Distinct values',
|
labelColumnDistinct: 'Distinct values',
|
||||||
|
labelColumnHasColorData: 'Has color data',
|
||||||
labelColumnIsColorData: 'Is color data',
|
labelColumnIsColorData: 'Is color data',
|
||||||
labelColumnQuantitativeMin: 'Min',
|
labelColumnQuantitativeMin: 'Min',
|
||||||
labelColumnQuantitativeMax: 'Max',
|
labelColumnQuantitativeMax: 'Max',
|
||||||
|
|
Загрузка…
Ссылка в новой задаче