Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/no ref/add backend timeline #360

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
4f257e2
update submodules
KaiWaldrant Oct 15, 2024
bcbfca9
update github actions
KaiWaldrant Oct 15, 2024
f2155d7
Add timeline
KaiWaldrant Oct 15, 2024
8888a16
add css
KaiWaldrant Oct 15, 2024
12d929f
WIP
KaiWaldrant Oct 15, 2024
6b50bbe
fix actions
KaiWaldrant Oct 17, 2024
30a8934
fix typo
KaiWaldrant Oct 17, 2024
30ce83a
Use R instead of python
KaiWaldrant Oct 17, 2024
1aff679
fix supabase_url
KaiWaldrant Oct 17, 2024
dc068f4
ci force
KaiWaldrant Oct 17, 2024
29ff0cd
fix typo
KaiWaldrant Oct 17, 2024
7656eed
add os env
KaiWaldrant Oct 17, 2024
72bfe9b
Update .github/workflows/quarto_netlify.yml
rcannood Oct 17, 2024
a58dd98
WIP
KaiWaldrant Oct 17, 2024
89c59f8
WIP
KaiWaldrant Oct 18, 2024
509d5de
Update timeline and add url
KaiWaldrant Oct 18, 2024
0306278
use first_release
KaiWaldrant Oct 18, 2024
231bc4f
Merge remote-tracking branch 'origin/main' into feature/no-ref/add-ba…
KaiWaldrant Oct 18, 2024
0969c43
WIP
KaiWaldrant Oct 18, 2024
24d5a7c
WIP
KaiWaldrant Oct 23, 2024
6a92955
WIP render first version
KaiWaldrant Oct 23, 2024
a3a8b31
remove js
KaiWaldrant Oct 23, 2024
bd1de51
WIP add color
KaiWaldrant Oct 23, 2024
c461fa7
WIP legend
KaiWaldrant Oct 24, 2024
408ec94
update submobule
KaiWaldrant Oct 24, 2024
487f369
fix legend output
KaiWaldrant Oct 24, 2024
e116d4a
WIP legend
KaiWaldrant Oct 24, 2024
71436dc
WIP new legend
KaiWaldrant Oct 24, 2024
6cf6dff
wip working legend
KaiWaldrant Oct 24, 2024
e617021
Set style in css file
KaiWaldrant Oct 24, 2024
87caed8
Try vertical timeline
KaiWaldrant Oct 25, 2024
3265de3
WIP add alternate timeline
KaiWaldrant Oct 25, 2024
2724de5
Add timeline variations
KaiWaldrant Oct 25, 2024
6d81a1a
set aggregate to month
KaiWaldrant Oct 25, 2024
8a4dbf9
fix timeline
KaiWaldrant Oct 25, 2024
895fa6b
WIP alternate timeline
KaiWaldrant Oct 25, 2024
469800e
WIP alternative timeline
KaiWaldrant Oct 25, 2024
b55a0b7
add legend and fix Y ticks labels
KaiWaldrant Oct 25, 2024
6731d73
Merge remote-tracking branch 'origin/main' into feature/no-ref/add-ba…
KaiWaldrant Nov 4, 2024
6fe4e1f
fix hover and timeline position on alternate
KaiWaldrant Nov 4, 2024
7b59c5f
remove timeline 1 and 2
KaiWaldrant Nov 4, 2024
5f6418e
[WIP] update timeline css
KaiWaldrant Nov 4, 2024
7eb8531
update submodules
KaiWaldrant Nov 5, 2024
fa86cf4
change timeline filename
KaiWaldrant Nov 5, 2024
689b0e0
fix centering
KaiWaldrant Nov 5, 2024
b725445
update changelog
KaiWaldrant Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# openproblems.bio unreleased

## NEW FEATURES

* Add timeline visualisation (PR #360).

## MAJOR CHANGES

* Migrated the result scaling from R to JavaScript to allow dynamically updating the results (PR #332).
Expand Down
149 changes: 149 additions & 0 deletions documentation/fundamentals/timeline.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
/* legend */
.legend-swatches {

display: inline-flex;
align-items: center;
margin-right: 1em;
}

.legend-swatches::before {
content: "";
width: 18px;
height: 18px;
margin-right: 0.5em;
background: var(--color);
}


.legend-swatches-item {
break-inside: avoid;
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 1px;
}

.legend-swatches-label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - 18px - 0.5em);
}

.legend-swatches-swatch {
width: 18px;
height: 18px;
margin: 0 0.5em 0 0;
}

/* typography */
.event-title {
fill: #3C3941;
line-height: 1.4;
}

.event-title:hover {
cursor: default;
}

.event-description {
fill: #3C3941;
font: 400 16px/1.4 "Source Sans Pro", "Noto Sans", sans-serif;
transform: translateY(1em);
}

#title {
fill: #3C3941;
font: 600 16px/1.4 "Source Sans Pro", "Noto Sans", sans-serif;
}

.axis text {
font: 400 16px/1.4 "Source Sans Pro", "Noto Sans", sans-serif;
fill: #676170;
}

@media (max-width: 768px) {
text,
.event-title,
.event-description,
#title,
.axis text {
font-size: 14px;
}
}

/* chart */
#chart-background {
fill: #FAF9FB;
}

.tick line,
.domain {
stroke: #E2E0E5;
}

/* tooltip */
.wrapper {
position: relative;
}

.tooltip {
background-color: #fff;
border: 1px solid;
font-family: "Source Sans Pro", "Noto Sans", sans-serif;
left: 0;
max-width: 300px;
opacity: 0;
padding: calc(16px - 1px); /* border width adjustment */
pointer-events: none;
border-radius: 5px;
position: absolute;
top: -8px;
transition: opacity 0.1s linear, transform 0.05s ease-in-out;
z-index: 1;
}

/*
.tooltip:before {
background-color: #fff;
border-left-color: transparent;
border-top-color: transparent;
bottom: 0;
content: '';
height: 12px;
left: 50%;
position: absolute;
transform-origin: center center;
transform: translate(-50%, 50%) rotate(45deg);
width: 12px;
z-index: 1;
}
*/

.tooltip-date {
margin-bottom: 0.2em;
font-size: 0.7em;
line-height: 1.2;
font-weight: 400;
}

.tooltip-name {
margin-bottom: 0.2em;
font-size: 1em;
line-height: 1.4;
font-weight: 700;
}

.tooltip-description {
margin-bottom: 0.2em;
font-size: 0.8em;
line-height: 1.4;
font-weight: 400;
}

/* timeline */

#plot {
position: relative;
transform: translateX(50%);
}
Loading
Loading