in reply to Re^16: Unable to create a Pivot chart with visiable Columns
in thread Unable to create a Pivot chart with visiable Columns

Great Master!!! I have learnt a lot from you. One more thing. How I can drop device information on the same row with Browser in the chart now? I am trying but its messing up?

  • Comment on Re^17: Unable to create a Pivot chart with visiable Columns

Replies are listed 'Best First'.
Re^18: Unable to create a Pivot chart with visiable Columns
by poj (Abbot) on Sep 12, 2018 at 17:47 UTC

    Just remove device from this line

    # $worksheet2->write(++$row2,$col2,substr($device,0,3).'-'.$bro); $worksheet2->write(++$row2,$col2,$bro);
    poj

      Thanks for your quick responses. Device keys are still coming with the Chart and this should be like below Browser1 Browser 2 Browser 3 Computer but its coming that not is required. Please check below Computer Browser1 Browser2 Browser3 Computer How I can remove that? but its required in the Chart table.

        Are you saying you want the device totals in the pivot table but not plotted on the chart. That would mean having non-contiguous ranges like this

        $chart->add_series( categories => '=(Sheet1!$A$1:$A$9,Sheet1!$A$14:$A$25)', values => '=(Sheet1!$B$1:$B$9,Sheet1!$B$14:$B$25)', );

        and that would be complicated. It would also require version 0.76 or above of Excel::Writer::XLSX which I don't have. It would be simpler to create a separate table without device totals for the chart.

        poj