how to change color of one Dot in LineChart?
how to change color of one Dot in LineChart?
@Escalion86 I believe renderDotContent will be helpful for you, it has 3 parameters x,y and index, you can render the dot as you like for every dot by these parameters.
renderDotContent={({ x, y, index }) => { return renderDotContent(x, y, index); }}
Yes, but not same time... If I have 2 or more charts in one.. Because, dots in index in all charts change
you could use getDotColor
ex)
getDotColor={(dataPoint, dataPointIndex) => {
if (dataPointIndex === 0) {
return 'transparent';
}
return dotColor;
}
}
v7.0.0 is now available, so we're closing older issues and PRs from previous versions to keep the tracker focused on the current release. Please try the new version, and if you still have an issue, open a new one with the latest details and a reproduction.