mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-30 14:22:01 +08:00
revert: prevent stage and run query to apply legends (#4816)
This commit is contained in:
parent
af353b9340
commit
b480ff1e48
@ -32,7 +32,6 @@ const getSeries = ({
|
||||
widgetMetaData,
|
||||
graphsVisibilityStates,
|
||||
panelType,
|
||||
currentQuery,
|
||||
}: GetSeriesProps): uPlot.Options['series'] => {
|
||||
const configurations: uPlot.Series[] = [
|
||||
{ label: 'Timestamp', stroke: 'purple' },
|
||||
@ -42,15 +41,13 @@ const getSeries = ({
|
||||
const newGraphVisibilityStates = graphsVisibilityStates?.slice(1);
|
||||
|
||||
for (let i = 0; i < seriesList?.length; i += 1) {
|
||||
const { metric = {}, queryName = '', legend: lgd } = widgetMetaData[i] || {};
|
||||
const { metric = {}, queryName = '', legend = '' } = widgetMetaData[i] || {};
|
||||
|
||||
const newLegend =
|
||||
currentQuery?.builder.queryData.find((item) => item.queryName === queryName)
|
||||
?.legend || '';
|
||||
|
||||
const legend = newLegend || lgd || '';
|
||||
|
||||
const label = getLabelName(metric, queryName || '', legend);
|
||||
const label = getLabelName(
|
||||
metric,
|
||||
queryName || '', // query
|
||||
legend || '',
|
||||
);
|
||||
|
||||
const color = generateColor(label, themeColors.chartcolors);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user