1. A method comprising: receiving, by a computer system, a hierarchical dataset of a treemap configured to be visualized in a data visualization, wherein the hierarchical dataset has a plurality of data attributes corresponding to columns of the hierarchical dataset and a plurality of data records corresponding to rows of the hierarchical dataset, wherein the data visualization has a plurality of hierarchical depth levels, each depth level being associated with a data attribute in the plurality of data attributes, and wherein each depth level has graphical elements being associated with one or more data records; determining, by the computer system, a plurality of aggregate functions, each of the plurality of aggregate functions determined based at least in part on a plurality of different graphical attributes of the graphical elements of the data visualization, the different graphical attributes identifying characteristics of the treemap; aggregating, by the computer system, data values from the one or more data records associated with the graphical elements of at least one depth level of the plurality of hierarchical depth levels, and wherein at least one aggregate function from the plurality of aggregate functions is used to perform the aggregating; generating aggregated data values for the at least one depth level based at least in part on the plurality of aggregate functions; and rendering, by the computer system, the data visualization based on the aggregated data values.