Gathering detailed insights and metrics for d3plus-timeline
Gathering detailed insights and metrics for d3plus-timeline
Gathering detailed insights and metrics for d3plus-timeline
Gathering detailed insights and metrics for d3plus-timeline
npm install d3plus-timeline
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5 Stars
261 Commits
5 Watching
4 Branches
7 Contributors
Updated on 31 Jan 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-50.7%
109
Compared to previous day
Last week
-40%
530
Compared to previous week
Last month
1.3%
3,016
Compared to previous month
Last year
3.4%
33,153
Compared to previous year
1
An easy-to-use javascript timeline.
If using npm, npm install d3plus-timeline
. Otherwise, you can download the latest release from GitHub or load from a CDN.
1import modules from "d3plus-timeline";
d3plus-timeline can be loaded as a standalone library or bundled as part of D3plus. ES modules, AMD, CommonJS, and vanilla environments are supported. In vanilla, a d3plus
global is exported:
1<script src="https://cdn.jsdelivr.net/npm/d3plus-timeline@1"></script> 2<script> 3 console.log(d3plus); 4</script>
Live examples can be found on d3plus.org, which includes a collection of example visualizations using d3plus-react. These examples are powered by the d3plus-storybook repo, and PRs are always welcome. :beers:
This is a global class, and extends all of the methods and functionality of Axis
.
Axis
# Timeline.render([callback]) <>
Draws the timeline.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.buttonPadding([value]) <>
If value is specified, sets the button padding and returns the current class instance. If value is not specified, returns the current button padding.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.brushing([value]) <>
If value is specified, toggles the brushing value and returns the current class instance. If value is not specified, returns the current brushing value.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.brushFilter([value]) <>
If value is specified, sets the brush event filter and returns the current class instance. If value is not specified, returns the current brush event filter.
This is a static method of Timeline
, and is chainable with other methods of this Class.
1function() { 2 return !event.button && event.detail < 2; 3}
# Timeline.brushMin([value]) <>
Sets the minimum number of "ticks" to allow to be highlighted when using "ticks" buttonBehavior. Helpful when using x/y plots where you don't want the user to select less than 2 time periods. Value passed can either be a static Number, or a function that is expected to return a Number.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.buttonAlign([value]) <>
If value is specified, toggles the horizontal alignment of the button timeline. Accepted values are "start"
, "middle"
and "end"
. If value is not specified, returns the current button value.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.buttonBehavior([value]) <>
If value is specified, toggles the style of the timeline. Accepted values are "auto"
, "buttons"
and "ticks"
. If value is not specified, returns the current button value.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.buttonHeight([value]) <>
If value is specified, sets the button height and returns the current class instance. If value is not specified, returns the current button height.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.handleConfig([value]) <>
If value is specified, sets the handle style and returns the current class instance. If value is not specified, returns the current handle style.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.handleSize([value]) <>
If value is specified, sets the handle size and returns the current class instance. If value is not specified, returns the current handle size.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.on([typename], [listener]) <>
Adds or removes a listener for the specified brush event typename. If a listener is not specified, returns the currently-assigned listener for the specified event typename. Mirrors the core d3-brush behavior.
This is a static method of Timeline
, and is chainable with other methods of this Class.
Param | Type |
---|---|
[typename] | String | Object |
[listener] | function |
# Timeline.playButton([value]) <>
Determines the visibility of the play button to the left the of timeline, which will cycle through the available periods at a rate defined by the playButtonInterval method.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.playButtonConfig([value]) <>
The config Object for the Rect class used to create the playButton.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.playButtonInterval([value]) <>
The value, in milliseconds, to use when cycling through the available time periods when the user clicks the playButton.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.selectionConfig([value]) <>
If value is specified, sets the selection style and returns the current class instance. If value is not specified, returns the current selection style.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.selection([value]) <>
If value is specified, sets the selection and returns the current class instance. If value is not specified, returns the current selection. Defaults to the most recent year in the timeline.
This is a static method of Timeline
, and is chainable with other methods of this Class.
# Timeline.snapping([value]) <>
If value is specified, toggles the snapping value and returns the current class instance. If value is not specified, returns the current snapping value.
This is a static method of Timeline
, and is chainable with other methods of this Class.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 2/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More