Pivot samples
Configuration
Headers template
You can change the appearance of column and row headers.
Check documentation:
Setting Templates for Headers