If you want to disable the right text from the funnel chart then follow this example code:
series.labels.template.disabled = true;
If you add funnel chart on your web page then follow this example code:
Add JS link:
<script src="https://www.amcharts.com/lib/4/core.js"></script> <script src="https://www.amcharts.com/lib/4/charts.js"></script> <script src="https://www.amcharts.com/lib/4/themes/animated.js"></script>
PHP:
<?php $data[]=array('Column Name'=>$name,'value'=>$value); ?>
Add Script code:
<script> am4core.useTheme(am4themes_animated); var chart = am4core.create("chartdiv", am4charts.SlicedChart); chart.data = <?php echo json_encode($data); ?>; var series = chart.series.push(new am4charts.FunnelSeries()); series.colors.step = 2; series.dataFields.value = "value"; series.dataFields.category = "name"; series.labelsContainer.paddingLeft = 15; series.labelsContainer.width = 200; chart.legend = new am4charts.Legend(); </script>
Add HTML:
<div class="col-md-12" id="narration_p_id"> <div id="chartdiv"></div> </div>
Question and answer is powered by AnsPress.io