How can I change ant design progress bar color according to value?

Viewed 4714

I want to give 'yellow' color until 50%, after 50% it will display 'green'.

It is not like strokeColor feature. I want to see yellow or green. Not together.

Is it possible to handle it (preferred without css)?

import { Progress } from 'antd';
<Progress 
  percent={this.state.progress}
/>
2 Answers

use strokeColor

<Progress type="circle" percent={progressbar} strokeColor={'green'} />

Related