Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using short id for a unique graph_id
import shortid from 'shortid';
...
const visitors = graphDetails
.map(visitor => {
const id = shortid.generate();
...
return (
<Chart
chartType="LineChart"
...
graph_id={id}
...
/>);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.