状态(State)
Previous
zoomOut
Next
Overview
Loading...
State in Ant Design Charts is mainly used to control the state style of mark. These states will be interactively triggered and the attributes are style attributes supported by @antv/g.
({state: {active: { fill: 'red', stroke: 'blue', strokeWidth: 2 },inactive: { fill: '#aaa' },},});
There are currently 4 built-in states:
{"interaction": "elementHighlight","axis": {"y": {"labelFormatter": ".0%"}}}
{"interaction": "elementSelect","axis": {"y": {"labelFormatter": ".0%"}}}