What kind of visualization do you want? Barchart? Extensions are reusable components that can visualize different datasets. In your case you would probably write expressions that return the values you want to visualize in the property panel and the extension(or built-in chart) would make the chart. You could do this with most extensions.