parse()->value_labels_position
&& M_Chart_Parse::PARSE_ROWS === m_chart()->parse()->parse_in
&& [] !== m_chart()->parse()->value_labels
) {
// The labels came from the first column of the spreadsheet
// Render one table row per label so the table matches the spreadsheet's vertical arrangement
$labels = m_chart()->parse()->value_labels;
$raw = m_chart()->parse()->raw_data;
$per_row = (int) ceil( count( $raw ) / count( $labels ) );
$chunks = $per_row ? array_chunk( $raw, $per_row ) : [];
?>
$label ) {
?>
parse()->format_raw( $raw ) ); ?>
parse()->value_labels;
// Chunk the flat cell stream into rows of one label-width each
// Multi-row bodies get a generated row header so every data cell has row context
$columns = count( $first_row );
$rows = $columns ? array_chunk( m_chart()->parse()->raw_data, $columns ) : [];
$multi_row = 1 < count( $rows );
?>