@antv/g2plot
Version:
An interactive and responsive charting library
44 lines • 1.12 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_OPTIONS = exports.IS_TOTAL = exports.ABSOLUTE_FIELD = exports.DIFF_FIELD = exports.Y_FIELD = void 0;
exports.Y_FIELD = '$$yField$$';
exports.DIFF_FIELD = '$$diffField$$';
exports.ABSOLUTE_FIELD = '$$absoluteField$$';
exports.IS_TOTAL = '$$isTotal$$';
/**
* 瀑布图 默认配置项
*/
exports.DEFAULT_OPTIONS = {
/** default: show label */
label: {},
/** default: show leaderLine */
leaderLine: {
style: {
lineWidth: 1,
stroke: '#8c8c8c',
lineDash: [4, 2],
},
},
/** default: show total */
total: {
style: {
fill: 'rgba(0, 0, 0, 0.25)',
},
},
interactions: [{ type: 'element-active' }],
risingFill: '#f4664a',
fallingFill: '#30bf78',
waterfallStyle: {
fill: 'rgba(0, 0, 0, 0.25)',
},
yAxis: {
grid: {
line: {
style: {
lineDash: [4, 2],
},
},
},
},
};
//# sourceMappingURL=constant.js.map
;