分面图子视图的边框怎么去掉呢? #5618
Answered
by
pearmini
yuanyongbin
asked this question in
Q&A
分面图子视图的边框怎么去掉呢?
#5618
Replies: 1 comment
-
/**
* A recreation of one of these demos: https://observablehq.com/@observablehq/plot-facets?collection=@observablehq/plot
*/
import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
width: 928,
height: 320,
paddingLeft: 60,
paddingBottom: 60,
});
const facetRect = chart
.facetRect()
.data({
type: 'fetch',
value: 'https://assets.antv.antgroup.com/g2/anscombe.json',
})
.encode('x', 'series');
facetRect
.point()
.attr('frame', false) // 这里
.attr('inset', 10)
.encode('x', 'x')
.encode('y', 'y')
.style('stroke', '#000');
chart.render(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yuanyongbin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
版本:v5.1.5
问题:分面图子视图的边框怎么去掉呢?
期望:去掉黑色边框
官网示例: https://g2.antv.antgroup.com/zh/examples/composition/facet#rect-row
截图如下:
Beta Was this translation helpful? Give feedback.
All reactions