我想从Excel文件创建图表。数据已经添加,我想读取数据并创建Excel。实际上,它正在跳过某些x轴值。 我已经尝试过了。
my $chart1 = $workbook->add_chart( type => 'column', embedded => 1 );
$chart1->add_series(
categories => '=sheet1!$A$11:$A$37',
values => '=sheet1!$B$11:$B$37',
name => 'Block status',
data_labels => {category => 1, value=>1,position => 'above'},
);
$chart1->set_title( name => 'Results of block' );
$chart1->set_x_axis( name => 'Flows' );
$chart1->set_y_axis( name => 'Error' );
$chart1->set_x_axis(interval_tick=> 4);
$chart1->set_x_axis(position_axis=> 'on_tick');
$chart1->set_size(width=>720, height =>576);
$Log_Sheet->insert_chart( 'F10', $chart1 );
它并没有采用所有的x轴值。 怎么做?