
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@lgv/activity-clock
Advanced tools
ES6 d3.js activity clock visualization.
# install package
npm install @lgv/activity-clock
The following values are the expected input data structure.
[
{
"timestamp": "2021-07-31T16:05:55-04",
"value": 1
},
{
"timestamp": "2021-07-01T18:05:55-04",
"value": 3
},
{
"timestamp": "2021-07-30T16:10:55-04",
"value": 2
},
{
"timestamp": "2022-09-02T02:10:55-04",
"value": 5
}
]
import { ActivityClock } from "@lgv/activity-clock";
// have some data
let data = [
{
"timestamp": "2021-07-31T16:05:55-04",
"value": 1
},
{
"timestamp": "2021-07-01T18:05:55-04",
"value": 3
},
{
"timestamp": "2021-07-30T16:10:55-04",
"value": 2
},
{
"timestamp": "2022-09-02T02:10:55-04",
"value": 5
}
]
// initialize
const ac = new ActivityClock(data);
// render visualization
ac.render(document.body);
The following values can be set via environment or passed into the class.
| Name | Type | Description |
|---|---|---|
LGV_HEIGHT | integer | height of artboard |
LGV_WIDTH | integer | width of artboard |
Style is expected to be addressed via css. Any style not met by the visualization module is expected to be added by the importing component.
| Class | Element |
|---|---|
lgv-activity-clock | top-level svg element |
lgv-arc | arc element |
lgv-content | content margined from artboard |
lgv-label | arc value label element |
lgv-label-arc | arc label element |
lgv-label-ring | ring label element |
# clone repository
git clone <repo_url>
# update directory context
cd activity-clock
# run docker container
docker run \
--rm \
-it \
-v $(pwd):/project \
-w /project \
-p 8080:8080 \
node \
bash
# FROM INSIDE RUNNING CONTAINER
# install module
npm install .
# run development server
npm run example
# view visualization in browser at http://localhost:8080
FAQs
ES6 d3.js activity clock visualization
We found that @lgv/activity-clock 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.