Skip to content

Commit

Permalink
Update format
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwahle committed Aug 9, 2022
1 parent 4202f63 commit 3399184
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
20 changes: 10 additions & 10 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
margin-top: 48px;
margin-bottom: 48px;
pointer-events: none;
color: #61DBFB;
color: #61dbfb;
font-size: calc(50px + 10vmin);
font-weight: bold;
}
Expand Down Expand Up @@ -52,9 +52,9 @@
grid-template-columns: auto 1fr;
grid-template-rows: auto auto 1fr;
grid-template-areas:
"header header "
"side tools "
"side content"
'header header '
'side tools '
'side content';
}

.stack {
Expand Down Expand Up @@ -98,9 +98,9 @@
grid-template-columns: 1fr auto;
grid-template-rows: auto auto auto;
grid-template-areas:
"bar box "
"grid box "
"tree tree "
'bar box '
'grid box '
'tree tree ';
}

.tools {
Expand Down Expand Up @@ -144,13 +144,13 @@
grid-area: tree;
}

.treemapTextField input{
height: 10px
.treemapTextField input {
height: 10px;
}

.title {
color: #263238;
font-size: 14px;
font-weight: bold;
font-family: Helvetica, Arial, sans-serif
font-family: Helvetica, Arial, sans-serif;
}
10 changes: 7 additions & 3 deletions src/components/visualizations/TreeMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const processLineBreak = (text: string, maxNumChars = 15) => {
}
}
words.push(currentLine);
return words
}
return words;
};

export default function (props: TreeMapProps) {
const [chartData, setChartData] = useState<TreeMapData>([]);
Expand All @@ -35,7 +35,11 @@ export default function (props: TreeMapProps) {
`fe/${props.route}/topk`,
queryKey,
(data: TreeMapDataBackend) => {
setChartData(data.map(el => {return { y: el.y, x: processLineBreak(el.x) }}));
setChartData(
data.map((el) => {
return { y: el.y, x: processLineBreak(el.x) };
})
);
},
{ k: k }
);
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export type QueryParameters = {
export type Status = {
status: string;
version: string;
}
};
export type LdaVisData = {
mdsDat: { x: number[]; y: number[]; topics: number[]; cluster: number[]; Freq: number[] };
tinfo: {
Expand Down

0 comments on commit 3399184

Please sign in to comment.