Its a total misunderstanding of the problem. Budget as % of federal spending is totally meaningless measure. And it causes far more confusion then it explains anything.
Agencies don't send % of federal budget when they buy some aluminum sheets, they pay in $s.
Of course the % of federal budget goes down when you have vietnam, great society and so on and so on.
So this graph is just used to make excuses for NASA performance. In effect NASA budget now is actually not that different from the Apollo area. And in the last 5 years, NASA budget has gone up.