![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
chartjs-chart-matrix
Advanced tools
Chart.js v3.0.0 module for creating matrix charts
To create a matrix chart, include chartjs-chart-matrix.js
after chart.js
and then create the chart by setting the type
attribute to 'matrix'
const chart = new Chart(ctx, {
type: 'matrix',
data: dataObject
});
Matrix chart allows configuration of width
and height
of the data points in addition to standard Chart.js configuration.
const chart = new Chart(ctx, {
type: 'matrix',
data: {
datasets: [{
label: 'My Matrix',
data: [
{x: 1, y: 1, v: 11},
{x: 2, y: 2, v: 22},
{x: 3, y: 3, v: 33}
],
backgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex].v;
var alpha = (value - 5) / 40;
return Color('green').alpha(alpha).rgbString();
},
width: function(ctx) {
var a = ctx.chart.chartArea;
return (a.right - a.left) / 3.5;
},
height: function(ctx) {
var a = ctx.chart.chartArea;
return (a.bottom - a.top) / 3.5;
}
}]
},
});
You first need to install node dependencies (requires Node.js):
> npm install
The following commands will then be available from the repository root:
> npm run build // build dist files
> npm test // run all tests
> npm run lint // perform code linting
> npm package // create an archive with dist files and samples
chartjs-chart-matrix is available under the MIT license.
FAQs
Chart.js module for creating matrix charts
The npm package chartjs-chart-matrix receives a total of 8,886 weekly downloads. As such, chartjs-chart-matrix popularity was classified as popular.
We found that chartjs-chart-matrix 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.