Skip to content

Commit

Permalink
Merge pull request #486 from mozilla/low-volume-tweak
Browse files Browse the repository at this point in the history
fixes the 3-datapoint grid overlap
  • Loading branch information
hamilton committed May 12, 2020
2 parents 4c8423f + 5ddfd38 commit c88a1a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/explore/ProbeExplorer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,15 @@ $: if (hoverValue.x) {

<g slot='glam-body' let:top let:bottom let:left={lp} let:right={rp} let:yScale>
{#if showViolins}
{#if !justOne}
<line
x1={(lp + rp) / 2} x2={(lp + rp) / 2} y1={top} y2={bottom} stroke=var(--digital-blue-150)
/>
{/if}
{#if hovered.datum || (data.length > 1)}
{#if hovered.datum && (!justOne)}
<AdHocViolin
start={
((lp + rp) / 2) - (explorerComparisonSmallMultiple.width
- explorerComparisonSmallMultiple.left
- explorerComparisonSmallMultiple.right) / 2 + VIOLIN_PLOT_OFFSET
}
direction={-1}
density={insufficientData ? data[0][densityMetricType] : hovered.datum[densityMetricType]}
density={((data.length < 3) || !hovered.datum) ? data[0][densityMetricType] : hovered.datum[densityMetricType]}
width={
(explorerComparisonSmallMultiple.width
- explorerComparisonSmallMultiple.left
Expand All @@ -264,6 +259,11 @@ $: if (hoverValue.x) {
- explorerComparisonSmallMultiple.left
- explorerComparisonSmallMultiple.right) / 2 - VIOLIN_PLOT_OFFSET} />
{/if}
{#if !justOne}
<line
x1={(lp + rp) / 2} x2={(lp + rp) / 2} y1={top} y2={bottom} stroke=var(--digital-blue-150)
/>
{/if}
{/if}
</g>
</AggregationComparisonGraph>
Expand Down

0 comments on commit c88a1a1

Please sign in to comment.