31 |
32 |
41 | {displayYLabels && y}
42 |
43 |
44 | {xLabels.map((x, xi) => {
45 | const value = data[yi][xi];
46 | const style = Object.assign(
47 | {
48 | cursor: `${cursor}`,
49 | margin: "1px 1px 0 0",
50 | height,
51 | width: squares ? `${height}px` : undefined,
52 | flex: squares ? "none" : 1,
53 | textAlign: "center",
54 | },
55 | cellStyle(background, value, min, max, data, xi, yi)
56 | );
57 | return (
58 |
65 |
66 | {cellRender(value, x, y)}
67 |
68 |
69 | );
70 | })}
71 |