% const fs = require("fs"); const path = require("path"); const data = JSON.parse(fs.readFileSync(path.join(metadata.sourceDir, "data.json"))); // const maxSessionCount = Math.max(...Object.keys(data.ipCounts)); // console.log(maxSessionCount) const maxSessionCountCount = Math.max(...Object.values(data.ipCounts)); const logMaxSessionCC = Math.log10(maxSessionCountCount); const maxHeight = Math.ceil(logMaxSessionCC); const maxHeightValue = Math.pow(10, maxHeight); %>