@antv/g2plot
Version:
An interactive and responsive charting library
22 lines (19 loc) • 471 B
text/typescript
import { Plot } from '../../core/plot';
import { deepAssign } from '../../utils';
/** 直方图 xField */
export const HISTOGRAM_X_FIELD = 'range';
/** 直方图 yField */
export const HISTOGRAM_Y_FIELD = 'count';
/**
* 默认配置项
*/
export const DEFAULT_OPTIONS = deepAssign({}, Plot.getDefaultOptions(), {
columnStyle: {
stroke: '#FFFFFF',
},
tooltip: {
shared: true,
showMarkers: false,
},
interactions: [{ type: 'active-region' }],
});