
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tld3.js is a lightweight library that makes building d3.js graphs much simpler. It abstracts the intricacies of d3.js while harnessing the power of its data-driven DOM manipulation.
Check out our docs to get started!
To install:
npm install --save tld3
This assumes that you’re using npm package manager. With npm, you can either use a module bundler like Webpack or Browserify to consume CommonJS modules, or if you don't prefer to use a module bundler, you can use ES6 to import tld3.js into your project file(s).
If you aren't using npm or a modern module bundler, you can use a pre-built version from cdnjs and place the src link in script tags in your html file(s). This will make tld3.js available as a global object in your project.
tl;dr: Creating a bar chart in tld3.js is as simple as:
Example 1: Using raw JSON data
const data = [
{ "letter":"A",
"frequency":".08167"
},
{ "letter":"B",
"frequency":".01492"
},
{ "letter":"C",
"frequency":".02782"
},
{ "letter":"D",
"frequency":".04253"
},
// ... etc
];
// tl;dr :)
tld3.make('BarChart')
.using(data)
.in('#barchart');

Example 2: Using CSV file
tld3.upload('./data/scatterData.csv') // uploading csv data from a file
.then((data) => {
tld3.make('ScatterChart')
.using(data)
.in('#scatterchart');
})
.catch((err) => {
console.error(err);
});

Example 3: Using Firebase database url
tld3.uploadFirebase('https://tld3.firebaseio.com/') // upload data from from Firebase database
.then((data) => { // if the promise returns successfully, create the chart
tld3.make('LineChart')
.using(data)
.in('#linechart');
})
.catch((err) => { // else handle error
console.error(err);
});

We support data in many formats, including raw JSON or importing data from csv, tsv or JSON files. We now also support Firebase database urls which allows you to have live data updates!
See the docs for more information.
We currently support the following types of charts:
View the project roadmap here
See CONTRIBUTING.md for contribution guidelines.
FAQs
An expressive, modular library for D3.js.
We found that tld3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.