- 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++)
- {
- const struct variable *v = split[i];
- char temp_buf[80];
- const char *val_lab;
- const struct fmt_spec *print = var_get_print_format (v);
-
- tab_text (t, 0, i + 1, TAB_LEFT | TAT_PRINTF, "%s", var_get_name (v));
+ 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;