vis.API for visualization's legend?

Dear all,

is there any method/function to interact with the visualizations legends (the ones you find in pie, linechart etc.., you can filter upon).

best!
M

Hello, are you trying to add a legend to your own viz or trying to use data from another visualization's legend?

indeed my note was quite vague. If you add in your custom visualization (createAngularVisualization in my case) configuration something like:

visConfig: {
  defaults: {
    addLegend: true,
    legendPosition: 'right',

the legend will magically show up :slight_smile:
however, i am looking for a method to populate or interact with it, as by default, "loading ..." is constantly displayed.

I suspect this does the business: https://github.com/elastic/kibana/blob/v6.2.2/src/ui/public/visualize/visualize_legend.js

Any hint on how to integrate it into a custom visualization?

I guess there's no hope for this, correct? :frowning:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.