NEZ-2520 feat:新增漏斗图图表类型

This commit is contained in:
zyh
2023-02-02 10:00:21 +08:00
parent 0dde0b0458
commit 8c7ee1b620
19 changed files with 2127 additions and 174 deletions

View File

@@ -23,7 +23,7 @@ export function getChart (key) {
}
export function setChart (key, value) {
chartCache[`chart${key}`] && chartCache[`chart${key}`].dispose()
chartCache[`chart${key}`] && chartCache[`chart${key}`].dispose && chartCache[`chart${key}`].dispose()
chartCache[`chart${key}`] = value
}
const hexagonCache = {}

View File

@@ -263,10 +263,6 @@ export const chart = {
value: 'gauge',
label: i18n.t('dashboard.panel.chartForm.typeVal.gauge.label')
},
{
value: 'sankey',
label: i18n.t('dashboard.panel.chartForm.typeVal.sankey.label')
},
{
value: 'hexagon',
label: i18n.t('dashboard.panel.chartForm.typeVal.hexagonFigure.label')
@@ -307,7 +303,6 @@ export const chart = {
value: 'group',
label: i18n.t('dashboard.panel.chartForm.group')
},
{
value: 'logs',
label: i18n.t('overall.logs')
@@ -324,14 +319,6 @@ export const chart = {
value: 'pie',
label: i18n.t('dashboard.panel.chartForm.typeVal.pie.label')
},
{
value: 'bubble',
label: i18n.t('dashboard.panel.chartForm.typeVal.bubble.label')
},
{
value: 'rank',
label: i18n.t('dashboard.panel.chartForm.typeVal.rank.label')
},
{
value: 'log',
label: i18n.t('dashboard.panel.chartForm.typeVal.log.label')
@@ -351,6 +338,22 @@ export const chart = {
{
value: 'clock',
label: i18n.t('dashboard.panel.chartForm.typeVal.clock.label')
},
{
value: 'bubble',
label: i18n.t('dashboard.panel.chartForm.typeVal.bubble.label')
},
{
value: 'rank',
label: i18n.t('dashboard.panel.chartForm.typeVal.rank.label')
},
{
value: 'sankey',
label: i18n.t('dashboard.panel.chartForm.typeVal.sankey.label')
},
{
value: 'funnel',
label: i18n.t('dashboard.panel.chartForm.typeVal.funnel.label')
}
]
}
@@ -471,10 +474,7 @@ export const chartType = {
table: 'table',
stat: 'stat',
gauge: 'gauge',
sankey: 'sankey',
pie: 'pie',
bubble: 'bubble',
rank: 'rank',
treemap: 'treemap',
log: 'log',
text: 'text',
@@ -487,7 +487,11 @@ export const chartType = {
topology: 'topology',
map: 'map',
hexagon: 'hexagon',
topologyLink: 'topologyLink'
topologyLink: 'topologyLink',
bubble: 'bubble',
rank: 'rank',
sankey: 'sankey',
funnel: 'funnel'
}
export const chartLegendPlacement = {