Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrushFilter 交互和 Tooltip 交互 crosshairs 消失不见 #4577

Closed
pearmini opened this issue Jan 13, 2023 · 1 comment
Closed

BrushFilter 交互和 Tooltip 交互 crosshairs 消失不见 #4577

pearmini opened this issue Jan 13, 2023 · 1 comment
Labels
Milestone

Comments

@pearmini
Copy link
Member

brush-tooltip

export async function indicesLineBrushSeries(): Promise<G2Spec> {
  const data = await csv('data/indices.csv', autoType);
  return {
    type: 'view',
    children: [
      {
        type: 'line',
        width: 800,
        paddingLeft: 50,
        data,
        axis: {
          y: { labelAutoRotate: false },
        },
        transform: [{ type: 'normalizeY', basis: 'first', groupBy: 'color' }],
        legend: false,
        encode: {
          x: 'Date',
          y: 'Close',
          color: 'Symbol',
          key: 'Symbol',
          title: (d) => new Date(d.Date).toUTCString(),
        },
      },
    ],
    interactions: [{ type: 'tooltip' }, { type: 'brushXFilter' }],
  };
}
@pearmini pearmini added this to the 5.0.2 milestone Mar 29, 2023
@Aarebecca Aarebecca modified the milestones: 5.0.2, 5.0.3 Apr 6, 2023
@pearmini
Copy link
Member Author

fixed: #4860

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants