vega-lite icon indicating copy to clipboard operation
vega-lite copied to clipboard

feat: add label encoding

Open kanitw opened this issue 3 years ago • 7 comments

Redo of #7222 so we have a proper review.

To dos:

  • [x] use _label as a suffix for examples

  • [x] enumerate examples for different mark types:

    • [ ] bar_label (labeling vertical bar chart -- this should be a modification of bar.vl.json to add labels)

      • [ ] auto-rotate for vertical bars
    • [x] bar_horizontal_label (labeling vertical bar chart)

    • [x] bar_negative_label (labeling vertical bar chart -- this should be a modification of bar.vl.json to add labels)

    • [ ] bar_negative_horizontal_label (labeling vertical bar chart)

      • [ ] https://github.com/vega/vega-lite/issues/7881 (Can do after release?)
      • [ ] replace bar_negative_horizontal_label
    • [x] stacked_bar_v_label (labeling vertical bar chart), stacked_bar_h_label (labeling horizontal bar chart)

      • [ ] https://github.com/vega/vega-lite/issues/7882
    • [ ] https://github.com/vega/vega-lite/issues/7883

      • [x] line_label
      • [x] line_color_label (please rename from line_multi_label)
    • [ ] Examples to consider if we can replace

      • [ ] layer_arc_label
      • [ ] layer_bar_labels_grey
      • [ ] layer_line_lend_label
  • [ ] revise padding property (it doesn't feel like what padding means)

  • [ ] docs

    • [x] Add a "label" to the "text and tooltip" section in the encoding.md
    • [ ] add these new examples to the example gallery
    • [ ] encoding.label.mark is somehow "Any" image

kanitw avatar Apr 11 '21 18:04 kanitw

Any updates on this?

aantn avatar Sep 15 '21 11:09 aantn

Do we have examples for bar and stacked bar?

kanitw avatar Sep 18 '21 08:09 kanitw

We don't have it right now, but I can add more.

chanwutk avatar Sep 18 '21 08:09 chanwutk

@kanitw I'm really looking forward to this feature, is there anything I can do to help get this feature ready?

sid-kap avatar Aug 16 '22 02:08 sid-kap

here also - is there anything we can do to help?

Is this still being worked on?

tmespe avatar Jul 05 '23 15:07 tmespe

Is this still being worked on? It has been opened for so long.

durd07 avatar Mar 15 '24 02:03 durd07