function LabelWithClick(props) {
	const { activeAxis, className, index, payload, y, ...rest } = props;
	let selectedClass = '';

	if (activeAxis === index) {
		selectedClass = theme('tc-radar-chart-label--selected', className);
	}

	return (
		<text {...rest} y={y} data-axis-index={index} role="button" className={selectedClass}>
			{payload.value}
		</text>
	);
}
/**
 * This function provides a custom clickable axis label with a data link to the index of the chart data
 * @param {Object} props the current props of the PolarAngleAxis
 */
This function provides a custom clickable axis label with a data link to the index of the chart data
@param {Object} props the current props of the PolarAngleAxis
This function provides a custom clickable axis label with a data link to the index of the chart data @param { Object } props the current props of the PolarAngleAxis
function LabelWithClick(props) {
	const { activeAxis, className, index, payload, y, ...rest } = props;
	let selectedClass = '';
	if (activeAxis === index) {
		selectedClass = theme('tc-radar-chart-label--selected', className);
	}
	return (
		<text {...rest} y={y} data-axis-index={index} role="button" className={selectedClass}>
			{payload.value}
		</text>
	);
}
function LabelWithClick ( props ) { const { activeAxis , className , index , payload , y , ... rest } = props ; let selectedClass = '' ; if ( activeAxis === index ) { selectedClass = theme ( 'tc-radar-chart-label--selected' , className ) ; } return ( < text { ... rest } y = { y } data-axis-index = { index } role = "button" className = { selectedClass } > { payload . value } < / text > ) ; }
This function provides a custom clickable axis label with a data link to the index of the chart data
 @param {Object} props the current props of the PolarAngleAxis
This function provides a custom clickable axis label with a data link to the index of the chart data @param { Object } props the current props of the PolarAngleAxis