
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.
CedChart.js is a react-native module which renders a scalable Line Chart.
The x-axis can contain hourly, weekly or monthly values. The scale will adapt depending on the amount of data with more or less vetical strokes displaying.
The y-axis will always display 11 adaptive values corresponding to 0, 10, 20, 30, ... , 100% of the data's max value.
You can install the module through npm: https://www.npmjs.com/package/cedchart
run npm install cedchart
<CedChart /> in your render()Option 1 - You pass pre-fetched data to the Chart: You need 4 props: data, timeUnit, valUnit and period.
1d for 24-hour format, 1w for day-of-the-week format and 1m or 3m for mm/dd format. Warning: If you want 24-hour format, you also need to have a data array that corresponds to 24 hours worth of data. Same goes for other periods.Example:
<CedChart
data={[
{
time: '1570522315',
value: '0',
},
{
time: '1570522215',
value: '100',
},
]}
dataType = {"temperature"}
timeUnit = {"time"}
valUnit = {"value"}
period = {"1d"}
/>
One additional property for your Chart is color. You can choose between 6 colors:
If not specified, the default color is blue.
Example:
<CedChart
data= {[...]}
timeUnit= {"time"}
valUnit= {"value"}
color= {"red"}
/>
Another additional property for your graph is secondColor. This allows you to have a custom gradient color different from the main line color. The same colors as color: are available.
If not specified, the default second color is the same as the main color.
Example:
<CedChart
data= {[...]}
timeUnit= {"time"}
valUnit= {"value"}
color="pink"
secondColor="orange"
/>
yLabel is an additional property to label the y-axis.
Example:
<CedChart
data= {[...]}
timeUnit= {"time"}
valUnit= {"value"}
yLabel= {"°C"}
/>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. https://github.com/ThatFrenchComputerGuy/CedChartJs
This Chart module has been thought to take the full width of the screen so please Full compatibility cannot be guaranteed if you change the width ratio.
The Chart should render nicely on any screen width so please open an issue stating your screen ratio if it does not.
You can adapt the height a little bit.
Yes you absolutely can.
FAQs
CedChart.js is a react-native module which render a scalable Line Chart
The npm package cedchart receives a total of 0 weekly downloads. As such, cedchart popularity was classified as not popular.
We found that cedchart 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
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.