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

SVG: shape-rendering #2489

Closed
JonasJonny opened this issue May 23, 2020 · 1 comment
Closed

SVG: shape-rendering #2489

JonasJonny opened this issue May 23, 2020 · 1 comment
Labels

Comments

@JonasJonny
Copy link

Hi,
is it somehow possible to pass shapeRendering: 'crispEdges' to tickLine, line,...?
MDN: shape-rendering

import { Chart } from '@antv/g2';

const data = [
  { year: '1951 年', sales: 38 },
];
const chart = new Chart({
  container: 'container',
  autoFit: true,
  height: 500,
  renderer: 'svg',
});

chart.data(data);

chart.axis('sales', {
  line: {
    style: {
      stroke: 'red',
      // Next line is ignored
      shapeRendering: 'crispEdges',
    },
  },
});

chart.interval().position('year*sales');

chart.render();
@hustcc hustcc added the V4 label Jan 5, 2021
@hustcc
Copy link
Member

hustcc commented Aug 22, 2023

SVG renderer The SVG renderer in the old version had many bugs that could not be fixed. In the new G2 5.0, we have rigorously tested multiple renderers to ensure that the rendering effects of different renderers are consistent. We recommend using version 5.0.

@hustcc hustcc closed this as completed Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants