diff --git a/frontend/app.css b/frontend/app.css index 0d939d8..50a7300 100644 --- a/frontend/app.css +++ b/frontend/app.css @@ -9,7 +9,6 @@ body { } .bar { - fill: rgba(252, 84, 104, 1); } .highlighted-bar { diff --git a/frontend/components/PerspectiveScoresBarChart.tsx b/frontend/components/PerspectiveScoresBarChart.tsx index b31350a..3d96182 100644 --- a/frontend/components/PerspectiveScoresBarChart.tsx +++ b/frontend/components/PerspectiveScoresBarChart.tsx @@ -87,7 +87,7 @@ class PerspectiveScoresBarChart extends Component (scoreObj.label == this.state.selectedScore))[0]; - var selectedScoreMessage = `${selectedScoreObj.scoreName}: ${selectedScoreObj.value.toFixed(2)}`; + var selectedScoreMessage = `${selectedScoreObj.scoreName}: ${(selectedScoreObj.value*100).toFixed(2)}%`; g.append("g") .attr("transform", "translate(0," + h + ")") @@ -117,6 +117,15 @@ class PerspectiveScoresBarChart extends Component { if (index == 1 || index == 2) { - return {"x": -(label.length) * 5, "y": 0.0}; + return {"x": -(label.length) * 6, "y": 0.0}; } else if (index == 3) { - return {"x": -(label.length) * 5, "y": 6}; + return {"x": -(label.length) * 5, "y": 10}; } else if (index == 4) { return {"x": -(label.length) * 2, "y": 12}; } else if (index == 5) { @@ -113,7 +113,7 @@ class PerspectiveScoresSpiderChart extends Component {this.props.selectedText.map((item, index) =>
-
+
{item.id}
{item.text}
-
- +
+
)} diff --git a/frontend/components/TextGenerationControl.tsx b/frontend/components/TextGenerationControl.tsx index 8612b86..10d3643 100644 --- a/frontend/components/TextGenerationControl.tsx +++ b/frontend/components/TextGenerationControl.tsx @@ -144,13 +144,19 @@ class TextGenerationControl extends React.Component< }} >
-

Text Generation Prompt

+

Text Generation Prompt

+
+ +
+ { this.sortGeneratedTextResults(option.key, this.state.sortDescending); }} /> - { this.setHighlightedScoreLabel(option.key); @@ -192,11 +196,11 @@ class TextGenerationResults extends React.Component {this.state.analysisResults.map((item) => -
-
+
+
{item.id}
-
+