Using d3.js svg clipPath not clipping in Angular

前端 未结 1 1085
醉话见心
醉话见心 2021-02-15 05:20

I am developing a graph that\'s vey similar to following example: http://bl.ocks.org/mbostock/1667367 where it uses clipPath to clip the area so the area graph does not overflow

相关标签:
1条回答
  • 2021-02-15 05:46

    Finally after isolating the code in another file and simplifing it, I've found what was the responsible of this strange behaviour:

    In the <head> I had:

    <head>
      <meta charset="utf8">
      <title>Real time context aware graphics display</title>
      <link rel="stylesheet" href="/stylesheets/app.css">
      <link rel="stylesheet" href="/stylesheets/graph.css"><base href="/">
      <base href="/">
      <style type="text/css"></style>
    </head>
    

    Ad when I removed the <base href="/"> all worked perfectly. I do not know exactly the reason.

    0 讨论(0)
提交回复
热议问题