Table of Contents
import FusionCharts from "fusioncharts";
import charts from "fusioncharts/fusioncharts.charts";
import ReactFusioncharts from "react-fusioncharts";
// Resolves charts dependancy
charts(FusionCharts);
const dataSource = {
chart: {
caption: "Market Share of Web Servers",
plottooltext: "<b>$percentValue</b> of web servers run on $label servers",
showlegend: "1",
showpercentvalues: "1",
legendposition: "bottom",
usedataplotcolorforlabels: "1",
theme: "fusion"
},
data: [
{
label: "Apache",
value: "32647479"
},
{
label: "Microsoft",
value: "22100932"
},
{
label: "Zeus",
value: "14376"
},
{
label: "Other",
value: "18674221"
}
]
};
class MyComponent extends React.Component {
render() {
return (
<ReactFusioncharts
type="pie2d"
width="100%"
height="100%"
dataFormat="JSON"
dataSource={dataSource}
/>
);
}
}
We’re excited to announce the upcoming release of FusionCharts v4.1—a groundbreaking step forward in the…
Have you ever been overwhelmed by a massive data set and wondered, "How do I…
If you’ve ever tried to make sense of the stock market, you’ve probably come across…
Imagine you’re comparing the sales performance of your top product lines across different regions, or…
Have you ever spent hours buried in documentation, hunting for a specific piece of code?…
Do you feel like your data is a cryptic puzzle, locked away from revealing its…