Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
garganttua
Advanced tools
/ / _______ _________ / |/ | __ _______
/ \ _ \ __ / _ \ / \ \ \ | _
\ _\ / __ | | / // > __ | | \ | | | | | // __ _
_ (__ /| _ (____ /| /| |__| |_/(__ /
/ / /_____/ / / /
A simplified Gantt-Chart representation tool for the browser, leveraging the power of CSS-grid \o/
In the demo directory you find some examples on how to use this library. The recommended way is to use the library to load a JSON file from the server, containing all tasks to display in the Gantt-chart. If you need to, you can also render the desired HTML directly on server side.
<script src="../dist/iife/garganttua.js" type="module" async></script>
<garganttua-gantt-chart src="./data.json" start="2020-12-01" end="2021-03-15" groups="collapsable"></garganttua-gantt-chart>
The garganttua-gantt-chart
custom element has some attributes you have to provide as configuration:
src
- needs to be provided, when the markup is not provided on server-side. See "JSON data reference" for the format.start
- this reflects the start of the window for the Gantt chart. Tasks will be arranged related to the start and end date of the chartend
- this reflects the end of the window for the Gantt chart. Tasks will be arranged related to the start and end date of the chartgroups
- add "collapsable" as groups
attribute if you want to have the sub groups hidden initially. Toggle Buttons to toggle the visibility are attached automatically.The type definitions can be found in lib/task-list.ts
. But the data structure of the provided JSON data is very easy:
(An extensive example can be seen in demo/data.json)
tasks.json
[
{
type: "task", // simple task
description: "some string", // some short task description
start?: "2021-01-01", // date formatted as ISO date string: yyyy-mm-dd
end?: "2021-01-15", // date formatted as ISO date string: yyyy-mm-dd
content?: "SGVsbG8gV29ybGQh" // b64 encoded HTML or text
},
...
{
type: "group"
description: "some string"
tasks: [ ... ] // a group has some tasks or also new groups
}
]
npm i
npm start
open http://localhost:8080/demo
FAQs
simple gantt charts based on css grid
The npm package garganttua receives a total of 0 weekly downloads. As such, garganttua popularity was classified as not popular.
We found that garganttua demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.