Skip to content

Commit

Permalink
Small fixes to timescale
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Jun 3, 2024
1 parent 4145f67 commit 70ecd87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deps/web-components
8 changes: 3 additions & 5 deletions src/pages/maps/@id/correlation/+Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function Page({ map }) {

const settings = h("div.settings", [
h("h3", "Settings"),
h(AgeScaleSelector, { scale: ageScale, setScale: setAgeScale }),
//h(AgeScaleSelector, { scale: ageScale, setScale: setAgeScale }),
h(AgeDisplayModeSelector, {
displayMode: ageMode,
setDisplayMode: setAgeMode,
Expand All @@ -69,7 +69,7 @@ export function Page({ map }) {
setSelectedLegendID(null);
},
},
[h(Button, { icon: "cog", minimal: true })]
h(Button, { icon: "cog", minimal: true })
),
]),
h("div.vis-container", { ref }, [
Expand Down Expand Up @@ -157,8 +157,6 @@ function CorrelationChart({

if (width < 10) return null;

const ageRange = [...domain] as AgeRange;

return h("div.vis-frame", [
h(
"svg.vis-area",
Expand All @@ -181,7 +179,7 @@ function CorrelationChart({
length: yMax,
// Bug in timescale component, the age range appears to be changed
// if we pass it in statically.
ageRange,
ageRange: domain,
absoluteAgeScale: true,
levels: [2, 3],
}),
Expand Down

0 comments on commit 70ecd87

Please sign in to comment.