Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ramneet Chopra <[email protected]>
  • Loading branch information
ramneet-persistent committed Oct 28, 2022
1 parent b840507 commit 8bfd4ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,6 @@ export const DataConfigPanelItem = ({
}
};

// const isPositionButtonVisible = (sectionName: string) =>
// sectionName === AGGREGATIONS &&
// (visualizations.vis.name === VIS_CHART_TYPES.Line ||
// visualizations.vis.name === VIS_CHART_TYPES.Scatter);

const getTimeStampFilteredFields = (options: IField[]) =>
filter(options, (i: IField) => i.type !== TIMESTAMP);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export const Line = ({ visualizations, layout, config }: any) => {
fillcolor: fillColor,
};
const multiYaxis = { yaxis: `y${index + 1}` };

const side = seriesPosition.find((seriesItem) => seriesItem.label === getPropName(field));
multiMetrics = {
...multiMetrics,
Expand Down Expand Up @@ -200,7 +199,6 @@ export const Line = ({ visualizations, layout, config }: any) => {
text: [],
showlegend: false,
};
const threshold = thresholds ? thresholds : [];
const levels = availabilityConfig.level ? availabilityConfig.level : [];

const mapToLine = (list: ThresholdUnitType[] | AvailabilityUnitType[], lineStyle: any) => {
Expand Down Expand Up @@ -239,18 +237,7 @@ export const Line = ({ visualizations, layout, config }: any) => {
calculatedLineValues = [...calculatedLineValues, thresholdTraces];
}
return [mergedLayout, calculatedLineValues];
}, [
seriesPosition,
queriedVizData,
fields,
lastIndex,
layout,
layoutConfig,
xaxis,
mode,
series,
labelSize,
]);
}, [queriedVizData, fields, lastIndex, layout, layoutConfig, xaxis, mode, series, labelSize]);

const mergedConfigs = useMemo(
() => ({
Expand Down

0 comments on commit 8bfd4ad

Please sign in to comment.