If you are exporting to a CSV file, you are exporting the data, not the interface, so it's best to use a query as the data source.
A crosstab query (made using the Wizard) can be used as a PivotTable/PivotChart record source, but since these objects do their own pivoting, it may not be necessary. I like to make a query that has all the tables needed, and just the fields to be used on the PivotTable/PivotChart, and do the pivoting on the chart, in the interface.