如何在 amcharts 中设置饼图容器的高度?
How to set he height of the container of my pieChart in amcharts?
我有一个饼图,我的问题是我的显示标签超出了我的容器。我想调整我的容器的高度,但它不起作用。我正在使用 amcharts 的饼图。我希望有人能帮助我。这是我的代码。
这是我的javascript
function regionPie(trigger){
am4core.useTheme(am4themes_animated);
var chart = am4core.create("m_chart_industry_composition", am4charts.PieChart);
chart.innerRadius = am4core.percent(40);}}
这是我的 blade
<div class="col-md-12 col-sm-8">
<div id="m_chart_industry_composition">
</div>
</div>
任何建议都将是一个很好的帮助。
你应该使用 Responsive feature for amcharts
有一些自定义规则可以使图表对于所有类型的屏幕和设置都更加可靠。
希望对您有所帮助
我有一个饼图,我的问题是我的显示标签超出了我的容器。我想调整我的容器的高度,但它不起作用。我正在使用 amcharts 的饼图。我希望有人能帮助我。这是我的代码。
这是我的javascript
function regionPie(trigger){
am4core.useTheme(am4themes_animated);
var chart = am4core.create("m_chart_industry_composition", am4charts.PieChart);
chart.innerRadius = am4core.percent(40);}}
这是我的 blade
<div class="col-md-12 col-sm-8">
<div id="m_chart_industry_composition">
</div>
</div>
任何建议都将是一个很好的帮助。
你应该使用 Responsive feature for amcharts
有一些自定义规则可以使图表对于所有类型的屏幕和设置都更加可靠。
希望对您有所帮助