@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
50 lines (49 loc) • 1.05 kB
JavaScript
import { isMobileDevice } from '../../../utils/env';
export var MouseEvent;
(function (MouseEvent) {
MouseEvent["MouseOver"] = "mouseover";
MouseEvent["MouseOut"] = "mouseout";
})(MouseEvent || (MouseEvent = {}));
export var TriggerType;
(function (TriggerType) {
TriggerType["Axis"] = "axis";
TriggerType["Item"] = "item";
TriggerType["None"] = "none";
})(TriggerType || (TriggerType = {}));
var config = {
dataZoom: !isMobileDevice() && [
{
type: 'inside',
filterMode: 'filter',
minValueSpan: 3
}
],
grid: {
containLabel: true,
top: 15,
bottom: 15,
left: 15,
right: 15
},
legend: {
itemWidth: 12,
itemHeight: 10
}
};
export var mainAxis = {
type: 'category',
splitLine: {
show: false
},
axisLine: {
show: false
},
axisTick: {
show: false
},
nameLocation: 'center',
axisPointer: {
type: 'shadow'
}
};
export default config;