| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import { Plot } from '../../core/plot';
- import { deepAssign } from '../../utils';
- /**
- * 饼图默认配置项
- */
- export var DEFAULT_OPTIONS = deepAssign({}, Plot.getDefaultOptions(), {
- legend: {
- position: 'right',
- radio: {},
- },
- tooltip: {
- shared: false,
- showTitle: false,
- showMarkers: false,
- },
- label: {
- layout: { type: 'limit-in-plot', cfg: { action: 'ellipsis' } },
- },
- /** 饼图样式, 不影响暗黑主题 */
- pieStyle: {
- stroke: 'white',
- lineWidth: 1,
- },
- /** 饼图中心文本默认样式 */
- statistic: {
- title: {
- style: { fontWeight: 300, color: '#4B535E', textAlign: 'center', fontSize: '20px', lineHeight: 1 },
- },
- content: {
- style: {
- fontWeight: 'bold',
- color: 'rgba(44,53,66,0.85)',
- textAlign: 'center',
- fontSize: '32px',
- lineHeight: 1,
- },
- },
- },
- /** 默认关闭 text-annotation 动画 */
- theme: {
- components: {
- annotation: {
- text: {
- animate: false,
- },
- },
- },
- },
- });
- //# sourceMappingURL=contants.js.map
|