Temperature and density vs radius in side the sun: both
decrease
with
incerasing
radius up to the photosphere.
Beyond the chromosphere, density continues to fall, but temperature rises steeply.