Skip to content

Commit

Permalink
Ajoute les couleurs
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon committed May 1, 2024
1 parent f7dd984 commit b21e264
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions vistimeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
#visualization {
border: 1px solid lightgray;
}
.vis-item.red {
background-color: #ee8a8a;
}
.vis-item.green {
background-color: lightgreen;
}
.vis-item.yellow {
background-color: yellow;
}
.vis-item.blue {
background-color: lightblue;
}
.vis-item.purple {
background-color: #b78aee;
}
</style>
</head>
<body>
Expand All @@ -31,6 +46,7 @@
{ name: "start", title: "Start", optional: false, type: "Date", description: "Some text", allowMultiple: false },
{ name: "end", title: "End", optional: true, type: "Date", description: "Some text", allowMultiple: false },
{ name: "group", title: "Group", optional: true, description: "Some text", allowMultiple: false },
{ name: "className", title: "Color", optional: true, description: "any color between red, bleu, yellow, green, purple", allowMultiple: false },
], requiredAccess: 'read table'});

grist.onRecords(function (records, mappings) {
Expand Down

0 comments on commit b21e264

Please sign in to comment.