- ds_init_string (&dst->label, &src->label);
- dst->magnitude = src->magnitude;
+ ds_init_empty (&dst->label);
+
+ if ( var_is_value_missing (var, &src->values[0], MV_ANY))
+ ds_assign_cstr (&dst->label, _("*MISSING*"));
+ else
+ var_append_value_name (var, &src->values[0], &dst->label);
+
+ /* Chomp any whitespace from the RHS of the label.
+ Doing this ensures that those labels to the right
+ of the pie, appear right justified. */
+ ds_rtrim (&dst->label, ss_cstr (" \t"));
+ ds_ltrim (&dst->label, ss_cstr (" \t"));
+ dst->magnitude = src->count;