How to create Highcharts pareto with drilldown

199 views Asked by At

I want to create a pareto with drilldown. I'm able to create the drilldown, but the pareto line doesn't appear on the graph. Is there a demo of how to do this so that I can use that as an example?

This in an example of the code that I wrote, the drilldown works, but the pareto line doesn't appear.

series: [
            {
            type: 'pareto',
            name: 'Pareto',
            yAxis: 1,
            zIndex: 10,
            color: 'orange',
            baseSeries: 1,
            tooltip: {
                valueDecimals: 2,
                valueSuffix: '%'
         
        }, 
        {
            name: 'Example',
            type: 'column',
            data: [{}
  
                <?php foreach($Example1 as $m => $a): ?>
                ,{
                    name: '<?php echo $m ?>',
                    y: <?php echo $a['Qty'] ?>,
                    drilldown: '<?php echo $m ?>'
                }
                <?php endforeach ?>
            ],
            dataLabels: {
                enabled: true,
                color: '#FFFFFF',
                align: 'center',
                format: '{point.y}',
                style: {
                    color: 'white',
                    fontSize: '15px',
                }
            }
        }],
        drilldown: {
            series: [{}            

                <?php foreach ($Example1 as $m => $a): ?>
                ,{
                    name: '<?php echo $m ?>',
                    id: '<?php echo $m ?>',
                    data: [
                        <?php foreach ($Example2 as $r): ?>
                        <?php if ($r['Example'] == $m): ?>
                        ['<?php echo $r['ExampleExample'] ?>', <?php echo $r['Qty'] ?>],
                        <?php endif ?>
                        <?php endforeach ?>
                    ]
                }
                <?php endforeach ?>
            ]
0

There are 0 answers