Skip to content

Commit

Permalink
Merge pull request #399 from Kanaries/minifloat-zeroscale
Browse files Browse the repository at this point in the history
fix: apply zeroscale to mini float
  • Loading branch information
ObservedObserver authored Jan 26, 2024
2 parents bb227ab + 2c42b4f commit 966b668
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ const MiniFloatCanvas: React.FC<MiniFloatCanvasProps> = (props) => {
const { mainVizSetting, dataSource, fieldMetas } = semiAutoStore;
const [hide, setHide] = useState<boolean>(false);

const { debug } = mainVizSetting;
const { debug, excludeScaleZero } = mainVizSetting;
const mainViewData = useMemo<IRow[]>(() => {
if (pined) return applyFilters(dataSource, pined.filters);
return [];
}, [dataSource, pined]);

const specOptions = useMemo(() => ({ pattern: pined }), [pined]);
const specOptions = useMemo(() => ({ pattern: pined, excludeScaleZero }), [pined, excludeScaleZero]);
const simpleSpec = useVisSpec(specOptions, dataSource);

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

1 comment on commit 966b668

@vercel
Copy link

@vercel vercel bot commented on 966b668 Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.