diff --git a/src/lib/components/Timeline.svelte b/src/lib/components/Timeline.svelte index dbb543c..1b6876c 100644 --- a/src/lib/components/Timeline.svelte +++ b/src/lib/components/Timeline.svelte @@ -1,55 +1,92 @@
{#if xScale} - + + {#each actorNations as nation} + + {nation} + {/each} {#each ticks as tick} - {utcFormat('%b %d')(tick)} + {utcFormat('%b')(tick)} {/each} {#each cases as attrCase} - {#if attrCase.show} - - - - {/if} + {#if attrCase.show} + + + + {/if} {/each} {/if} @@ -60,4 +97,12 @@ .timeline-container { width: 100%; } + .country-label { + font-weight: bold; + font-size: 0.9rem; + } + .time-axis-tick-label { + font-size: 0.8rem; + fill: #888888; + } diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 7b5df16..20eba7d 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -48,7 +48,7 @@ methodFilter.init(cases, 'methods') $attributionScoreFilter = attributionScoreDef; - //console.log(cases.map(d => d.attribution_date)) + console.log(cases.map(d => d.campaign)) }); $: if (cases) { @@ -104,8 +104,8 @@
- - + +