forked from github/dataease
fix(图表): 修复双线组合图左纵轴自定义配色方案不正确问题
This commit is contained in:
parent
611b55ab5c
commit
0450eb5284
@ -870,9 +870,9 @@ export class DualLineMix extends ColumnLineMix {
|
|||||||
p[n.id] = n
|
p[n.id] = n
|
||||||
return p
|
return p
|
||||||
}, {})
|
}, {})
|
||||||
const { yAxis, extStack } = chart
|
const { yAxis, xAxisExt } = chart
|
||||||
const { data } = options as unknown as Options
|
const { data } = options as unknown as Options
|
||||||
if (extStack?.length) {
|
if (xAxisExt?.length) {
|
||||||
const seriesSet = new Set()
|
const seriesSet = new Set()
|
||||||
data[0]?.forEach(d => d.category !== null && seriesSet.add(d.category))
|
data[0]?.forEach(d => d.category !== null && seriesSet.add(d.category))
|
||||||
const tmp = [...seriesSet]
|
const tmp = [...seriesSet]
|
||||||
@ -917,8 +917,8 @@ export class DualLineMix extends ColumnLineMix {
|
|||||||
const result: ChartBasicStyle['seriesColor'] = []
|
const result: ChartBasicStyle['seriesColor'] = []
|
||||||
const seriesSet = new Set<string>()
|
const seriesSet = new Set<string>()
|
||||||
const colors = chart.customAttr.basicStyle.colors
|
const colors = chart.customAttr.basicStyle.colors
|
||||||
const { yAxis, extStack } = chart
|
const { yAxis, xAxisExt } = chart
|
||||||
if (extStack?.length) {
|
if (xAxisExt?.length) {
|
||||||
data?.forEach(d => {
|
data?.forEach(d => {
|
||||||
if (d.value === null || d.category === null || seriesSet.has(d.category)) {
|
if (d.value === null || d.category === null || seriesSet.has(d.category)) {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user