KouShuiYu
V2EX  ›  问与答

阿里的 g2 怎么去掉饼图高亮时的黑色边框?

  •  
  •   KouShuiYu · Jan 6, 2021 · 1452 views
    This topic created in 1965 days ago, the information mentioned may be changed or developed.

    https://s3.ax1x.com/2021/01/06/sEnkgf.png

    5 replies    2021-01-06 15:54:39 +08:00
    KouShuiYu
        1
    KouShuiYu  
    OP
       Jan 6, 2021
    已解决,文档不太友好
    ```js
    chart.state({
    active: {
    style: (element) => {
    const shape = element.shape;
    return {
    stroke: shape.attr("fill"),
    strokeOpacity: shape.attr("fillOpacity"),
    };
    },
    },
    ```
    vvmap
        2
    vvmap  
       Jan 6, 2021
    实话,文档确实不太友好
    Samuel021
        3
    Samuel021  
       Jan 6, 2021
    KouShuiYu
        4
    KouShuiYu  
    OP
       Jan 6, 2021
    @Samuel021 能发下地址么
    Samuel021
        5
    Samuel021  
       Jan 6, 2021
    @KouShuiYu #4 https://g2plot.antv.vision/zh/examples/pie/basic#basic
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5589 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 08:32 · PVG 16:32 · LAX 01:32 · JFK 04:32
    ♥ Do have faith in what you're doing.