Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created September 21, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/3c7bd30aa6f54d3dc62ab279fd2a8847 to your computer and use it in GitHub Desktop.
Save dance2die/3c7bd30aa6f54d3dc62ab279fd2a8847 to your computer and use it in GitHub Desktop.
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