
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
tsfixed-react-chartist
Advanced tools
(fork) React component for Chartist.js. This is a fork of git://github.com/fraserxu/react-chartist.git that fixes a problem with typescript props...
React component for Chartist.js
$ npm install react-chartist --save
Chartist is a peer dependency to react chartist. You need to install it if you do not have it installed already.
$ npm install chartist --save
import React from 'react';
import ReactDOM from 'react-dom';
import ChartistGraph from 'react-chartist';
class Bar extends React.Component {
render() {
var data = {
labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'],
series: [
[1, 2, 4, 8, 6, -2, -1, -4, -6, -2]
]
};
var options = {
high: 10,
low: -10,
axisX: {
labelInterpolationFnc: function(value, index) {
return index % 2 === 0 ? value : null;
}
}
};
var type = 'Bar'
return (
<div>
<ChartistGraph data={data} options={options} type={type} />
</div>
)
}
}
ReactDOM.render(<Bar />, document.body)
Please check out Chartist.js API documentation for more details of the options.
To add support for aspect ratio
<ChartistGraph className={'ct-octave'} data={data} options={options} type={type} />
This module does not include the css files for Chartist. If you want to add it, include their CDN in your html file
<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">
<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
Or use bower or npm to install Chartist and include it in your build process.
$ npm install chartist
Or
$ bower install chartist
$ npm install
To build run npm run build
If you want to support react version under v0.13, use npm install react-chartist@0.9.0
MIT
FAQs
(fork) React component for Chartist.js. This is a fork of git://github.com/fraserxu/react-chartist.git that fixes a problem with typescript props...
The npm package tsfixed-react-chartist receives a total of 5 weekly downloads. As such, tsfixed-react-chartist popularity was classified as not popular.
We found that tsfixed-react-chartist 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.