Example declaration: <Heatmap dateDetails={commitsData} />.
Add this to your view! Then, import the Heatmap component in the components folder. Note that you can style this component with the styles prop, and also, there's also width and height props.
Sample Data Input:
const commitsData = [ { date: "2020-06-02", count: 1 }, { date: "2020-06-03", count: 2 }, { date: "2020-06-04", count: 3 }, { date: "2020-06-05", count: 4 }, { date: "2020-06-06", count: 5 }, { date: "2020-05-30", count: 2 }, { date: "2020-05-31", count: 3 }, { date: "2020-05-01", count: 2 }, { date: "2020-05-02", count: 4 }, { date: "2020-05-05", count: 2 }, { date: "2020-05-30", count: 4 }, ];
Example declaration:
<Heatmap dateDetails={commitsData} />
.Add this to your view! Then, import the
Heatmap
component in the components folder. Note that you can style this component with the styles prop, and also, there's also width and height props.