Unverified Commit e9f54647 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

Rename x-axis label of Intermediate result "#Intermediate result" (#2146)



* rename intermediate graph xAxis name

* rename intermediate name

* code format

* rename class name
Co-authored-by: default avatarLijiao <15910218274@163.com>
parent ae0d36fa
......@@ -282,7 +282,7 @@ class Intermediate extends React.Component<IntermediateProps, IntermediateState>
notMerge={true} // update now
onEvents={IntermediateEvents}
/>
<div className="yAxis"># Intermediate result</div>
<div className="xAxis"># Intermediate result</div>
</div>
</div>
);
......
......@@ -245,8 +245,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
if (res.data.length !== 0) {
// just add type=number keys
const intermediateMetrics = parseMetrics(res.data[0].data);
for(const key in intermediateMetrics){
if(typeof intermediateMetrics[key] === 'number') {
for (const key in intermediateMetrics) {
if (typeof intermediateMetrics[key] === 'number') {
otherkeys.push(key);
}
}
......@@ -622,6 +622,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
:
null
}
<div className="intermediate-graph">
<ReactEcharts
option={intermediateOption}
style={{
......@@ -631,6 +632,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
}}
theme="my_theme"
/>
<div className="xAxis">#Intermediate result</div>
</div>
</Modal>
{/* Add Column Modal */}
{
......
......@@ -110,7 +110,7 @@ const intermediateGraphOption = (intermediateArr: number[], id: string): any =>
trigger: 'item'
},
xAxis: {
name: 'Trial',
// name: '#Intermediate result',
data: sequence
},
yAxis: {
......
......@@ -108,7 +108,7 @@ $bg: #b3b3b3;
/* for yAxis # intermediate position in intermediate graph*/
.intermediate-graph{
position: relative;
.yAxis{
.xAxis{
color: #333;
position: absolute;
left: 50%;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment