Changing state of specific customfield only

Hello
I am currently showing a bar chart with two custom fields.
I want to change the state of only one custom field to display it.
The status column belongs to the page. Can you set it?