pissang edited a comment on pull request #15095:
URL: https://github.com/apache/echarts/pull/15095#issuecomment-862152229
@ssthouse Here is a common way to set style from the option:
```ts
sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle());
```
Some notes:
+ Need to use `useStyle` here so the style properties can be reset to
default when developers didn't set it in the new options. Meanwhile `setStyle`
will merge the new style to the existing style.
+ `seriesModel.getModel('emptyCircleStyle')` get a model subset which only
includes `emptyCircleStyle` option.
+ `getItemStyle` get the full mapped style object from the model. It
includes fill and stroke. Meanwhile, there are other two methods that can get a
mapped style object. `getLineStyle` which only includes stroke. `getAreaStyle`
which only includes fill.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]