Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilber committed Sep 28, 2023
1 parent ad1ec2a commit 27c19d3
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions pykoi/frontend/src/lib/Comparison/BumpChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
import { line } from "d3-shape";
import { comparisonData } from "./store";
$: firstData = $comparisonData
.filter((d) => d.qid === 3)
.map((d) => ({ model: d.model, rank: d.rank }));
$: console.log("firstData", $comparisonData);
$: models = Array.from(new Set($comparisonData.map((d) => d.model)));
$: console.log("models", models);
let outerHeight;
let outerWidth;
Expand Down Expand Up @@ -46,18 +39,11 @@
$: pathLine = line()
.x((d) => xScale(d.qid))
.y((d) => yScale(d.rank));
// .curve(curveBasis)
$: modelData = models.map((model) =>
$comparisonData.filter((d) => d.model === model)
);
$: console.log("md", modelData);
$: console.log(
"ranks",
$comparisonData.map((d) => d.rank)
);
$: xTickArray =
xScale.domain().length > 10
? xScale.domain().filter((_, index) => index % 2 === 0)
Expand Down Expand Up @@ -122,21 +108,6 @@
</g>
{/if}
{/each}
<!-- y-ticks -->
{#each yScale.domain() as tick}
<g transform={`translate(${margin.left} ${yScale(tick) + 0})`}>
<!-- <text
class="axis-text"
x="-5"
y="0"
text-anchor="end"
dominant-baseline="middle"
>{firstData
.filter((d) => d.rank == tick)
.map((d) => d.model)[0]}</text
> -->
</g>
{/each}

<!-- axis labels -->
<text
Expand Down

0 comments on commit 27c19d3

Please sign in to comment.