Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-amcharts4
Advanced tools
A react wrapper component for `@amcharts/amcharts4` where (any) chart is rendered using JSON config pattern of @amcharts/amcharts4 and also taking care of updates to the rendered charts.
A react wrapper component for @amcharts/amcharts4
where (any) chart is rendered using JSON config pattern of @amcharts/amcharts4 and also taking care of updates to the rendered charts.
npm install --save react-amcharts4
import React from "react";
import AmChart4Wrapper from "react-amcharts4";
import { PieChart } from "@amcharts/amcharts4/charts";
// Configure any reguired theme
import * as am4core from "@amcharts/amcharts4/core";
import am4themes_material from "@amcharts/amcharts4/themes/material";
am4core.useTheme(am4themes_material);
const config = {
// Create pie series
series: [
{
type: "PieSeries",
dataFields: {
value: "litres",
category: "country"
}
}
],
// Add data
data: [
{
country: "Lithuania",
litres: 501.9
},
{
country: "Czech Republic",
litres: 301.9
},
{
country: "Ireland",
litres: 201.1
},
{
country: "Germany",
litres: 165.8
},
{
country: "Australia",
litres: 139.9
},
{
country: "Austria",
litres: 128.3
},
{
country: "UK",
litres: 99
},
{
country: "Belgium",
litres: 60
},
{
country: "The Netherlands",
litres: 50
}
]
};
const Demo = props => {
return (
<div style={{ width: "80%", margin: "0 auto" }}>
<AmCharts4Wrapper
config={config}
id="amcharts-4"
chartTypeClass={PieChart}
/>
</div>
);
};
export default Demo;
Note: For information on the chart's config, refer @amcharts/amchart4 documentation.
MIT © Abhishek Ramesh
FAQs
A react wrapper component for `@amcharts/amcharts4` where (any) chart is rendered using JSON config pattern of @amcharts/amcharts4 and also taking care of updates to the rendered charts.
The npm package react-amcharts4 receives a total of 46 weekly downloads. As such, react-amcharts4 popularity was classified as not popular.
We found that react-amcharts4 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.