MCPcopy Create free account
hub / github.com/flatlogic/react-material-admin / generateData

Function generateData

src/pages/charts/components/ApexHeatmap.js:84–100  ·  view source on GitHub ↗
(count, yrange)

Source from the content-addressed store, hash-verified

82
83// ##################################################################
84function generateData(count, yrange) {
85 var i = 0;
86 var series = [];
87 while (i < count) {
88 var x = "w" + (i + 1).toString();
89 var y =
90 Math.floor(Math.random() * (yrange.max - yrange.min + 1)) + yrange.min;
91
92 series.push({
93 x: x,
94 y: y,
95 });
96 i++;
97 }
98
99 return series;
100}
101
102function themeOptions(theme) {
103 return {

Callers 1

ApexHeatmap.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected