|
|
@@ -33,7 +33,7 @@ const IndicatorConfigForm = ({ autoRefresh, chartDesigner, dispatch }) => {
|
|
|
}}
|
|
|
value={indicatorConfig.xAxis.column.value}
|
|
|
>
|
|
|
- {columns.filter(c => c.name !== indicatorConfig.yAxis.column.value).map((c, i)=>{
|
|
|
+ {columns.filter(c => [indicatorConfig.yAxis.column.value, ].concat(indicatorConfig.otherColumn.map(c => c.value)).indexOf(c.name) === -1).map((c, i)=>{
|
|
|
return (<Option key={i} value={c.name}>{c.label}</Option>)
|
|
|
})}
|
|
|
</Select>
|
|
|
@@ -65,7 +65,7 @@ const IndicatorConfigForm = ({ autoRefresh, chartDesigner, dispatch }) => {
|
|
|
return <div>{label0}>{path[1].label}</div>
|
|
|
}
|
|
|
}}
|
|
|
- options={columns.filter(c => c.name !== indicatorConfig.xAxis.column.value).map((c, i)=>{
|
|
|
+ options={columns.filter(c => [indicatorConfig.xAxis.column.value, ].concat(indicatorConfig.otherColumn.map(c => c.value)).indexOf(c.name) === -1).map((c, i)=>{
|
|
|
return {
|
|
|
value: c.name,
|
|
|
label: c.label,
|
|
|
@@ -161,7 +161,7 @@ const IndicatorConfigForm = ({ autoRefresh, chartDesigner, dispatch }) => {
|
|
|
dispatch({ type: 'chartDesigner/changeField', name: 'indicatorConfig', value: { ...indicatorConfig, sortColumn: value }, autoRefresh });
|
|
|
}}
|
|
|
>
|
|
|
- {[indicatorConfig.xAxis.column, indicatorConfig.yAxis.column].filter(x => !!x.value).map((c, i)=>{
|
|
|
+ {[indicatorConfig.xAxis.column, indicatorConfig.yAxis.column].concat(indicatorConfig.otherColumn).filter(x => !!x.value).map((c, i)=>{
|
|
|
return <Option key={c.value} value={c.value}>{c.label}</Option>
|
|
|
})}
|
|
|
</Select>
|