- t = tab_create (3, split_cnt + 1, 0);
- tab_dim (t, tab_natural_dimensions);
- tab_vline (t, TAL_GAP, 1, 0, split_cnt);
- tab_vline (t, TAL_GAP, 2, 0, split_cnt);
- tab_text (t, 0, 0, TAB_NONE, _("Variable"));
- tab_text (t, 1, 0, TAB_LEFT, _("Value"));
- tab_text (t, 2, 0, TAB_LEFT, _("Label"));
- split = dict_get_split_vars (dict);
- for (i = 0; i < split_cnt; i++)
+ struct pivot_table *table = pivot_table_create (N_("Split Values"));
+ pivot_dimension_create (table, PIVOT_AXIS_COLUMN, N_("Value"),
+ N_("Value"));
+ struct pivot_dimension *variables = pivot_dimension_create (
+ table, PIVOT_AXIS_ROW, N_("Variable"));
+ variables->root->show_label = true;
+
+ for (size_t i = 0; i < n_vars; i++)