antvis/G2

SVG: shape-rendering #2489

JonasJonny posted onGitHub

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();

Fund this Issue

$0.00
Funded

Pull requests