Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
c3-chart-maker
Advanced tools
A Node.js module and CLI tool for rendering a chart from a CSV file using a C3 spec.
A Node.js module for rendering a chart from a CSV file using a C3 spec.
It can be used from the command line or as a code library. It's a great way to render server-side charts.
This library uses Data-Forge, Nightmare and C3.
For help please see this exmple repo and this post on The Data Wrangler.
npm install -g c3-chart-maker
c3-chart-maker <input-file> --chart=<c3-chart-file> --out=<output-image-file> [--export=<folder>] [--template=<chart-template-folder>] [--show] [--dump-chart]
chart Specifies the file that defines the chart.
out Specifies the name of the image file to output for the chart.
export Optionally specify a folder to export the interactive chart to.
show Optional parameter that shows the browser that renders the chart.
dump-chart Dump the expanded chart definition to standard out for debugging.
template Template directory that contains the HTML and CSS files for the chart. You can use this to completely override the chart template.
c3-chart-maker myspreadsheet.csv --chart=mychartspec.json --out=mychart.png --show --dump-chart
npm install --save c3-chart-maker
const c3ChartMaker = require('c3-chart-maker');
var inputFilePath = "your-input-file.csv"; // NOTE: This can also be a DataForge dataframe, an array of data or a path to a JSON file.
var chartTemplateFilePath = "my-chart-spec.json"; // NOTE: This can also be inline JSON or the path to a Node.js module with a function that builds the chart definition.
var outputFilePath = "your-chart-output-file.png";
var options: {
show: true // Show browser used to render the chart.
dumpChart: true, // Dump the expanded chart definition to the console for debugging.
export: "folder-path", // Optionally specify a folder to export an interactive chart to.
template: "folder-path" // Optionally override the chart template with your own custom version.
};
c3ChartMaker(inputFilePath, chartTemplateFilePath, outputFilePath, options)
.then(() => {
console.log('Done');
})
.catch(err => {
console.error(err);
});
FAQs
A Node.js API and CLI tool for rendering a chart from a CSV file using a C3 spec.
The npm package c3-chart-maker receives a total of 0 weekly downloads. As such, c3-chart-maker popularity was classified as not popular.
We found that c3-chart-maker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.