☰
Why Choose ApexCharts
- 20 chart types
- 1 million weekly downloads
- 100+ samples includes
const ApexChart = () => {
const [state, setState] = React.useState({
series: [
{
data: [
{
x: 'Operations',
y: [2800, 4500]
},
{
x: 'Customer Success',
y: [3200, 4100]
},
{
x: 'Engineering',
y: [2950, 7800]
},
{
x: 'Marketing',
y: [3000, 4600]
},
{
x: 'Product',
y: [3500, 4100]
},
{
x: 'Data Science',
y: [4500, 6500]
},
{
x: 'Sales',
y: [4100, 5600]
}
]
}
],
options: {
chart: {
height: 390,
type: 'rangeBar',
zoom: {
enabled: false
}
},
colors: ['#EC7D31', '#36BDCB'],
plotOptions: {
bar: {
horizontal: true,
isDumbbell: true,
dumbbellColors: [['#EC7D31', '#36BDCB']]
}
},
title: {
text: 'Paygap Disparity'
},
legend: {
show: true,
showForSingleSeries: true,
position: 'top',
horizontalAlign: 'left',
customLegendItems: ['Female', 'Male']
},
fill: {
type: 'gradient',
gradient: {
gradientToColors: ['#36BDCB'],
inverseColors: false,
stops: [0, 100]
}
},
grid: {
xaxis: {
lines: {
show: true
}
},
yaxis: {
lines: {
show: false
}
}
}
},
});
return (
<div>
<div id="chart">
<ReactApexChart options={state.options} series={state.series} type="rangeBar" height={390} />
</div>
<div id="html-dist"></div>
</div>
);
}
const domContainer = document.querySelector('#app');
ReactDOM.render(<ApexChart />, domContainer);
<div id="chart">
<ReactApexChart options={state.options} series={state.series} type="rangeBar" height={390} />
</div>
Reset Password
Enter your email address and we'll send you a link to reset your password.
Back to Login
Please wait...