AmCharts - Line Chart Overflowing graph container

后端 未结 1 892
忘了有多久
忘了有多久 2021-01-13 10:30

I am trying to get a line graph to display correctly on my site, but for some reason it wants to overflow the graph container. I have tried reset the box-sizing to initial,

相关标签:
1条回答
  • 2021-01-13 11:05

    This might be happening if you are using <base href> directive on your web page. In those cases references to masking filters in SVG do not work properly, hence lines protruding from plot area.

    To avoid that simply add the global baseHref setting line to your code:

    AmCharts.baseHref = true;
    

    Please note that this must be a standalone line (not a part of chart config) and go before any of the code that creates charts.

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