@antv/g2plot
Version:
An interactive and responsive charting library
42 lines • 1.03 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_OPTIONS = void 0;
exports.DEFAULT_OPTIONS = {
// 默认按照 name 字段对颜色进行分类
colorField: 'name',
rectStyle: {
lineWidth: 1,
stroke: '#fff',
},
hierarchyConfig: {
tile: 'treemapSquarify',
},
label: {
fields: ['name'],
layout: {
type: 'limit-in-shape',
},
},
tooltip: {
showMarkers: false,
showTitle: false,
},
// 下钻交互配置,默认不开启
drilldown: {
enabled: false,
breadCrumb: {
position: 'bottom-left',
rootText: '初始',
dividerText: '/',
textStyle: {
fontSize: 12,
fill: 'rgba(0, 0, 0, 0.65)',
cursor: 'pointer',
},
activeTextStyle: {
fill: '#87B5FF',
},
},
},
};
//# sourceMappingURL=constant.js.map
;