IgniteUI / ignite-ui

Ignite UI for jQuery by Infragistics
https://bit.ly/2kuu1fT
Other
477 stars 83 forks source link

igDataChart legend set element option without id #2192

Open intech-dpa opened 2 years ago

intech-dpa commented 2 years ago

Currently, the only way to setup the configuration for an igDataChart yo show a legend is to setup the id of the element in wich the legend is to be rendered. (Source).

I cannot think of any good reason why it has to be like that. At the very least it should also accept HTML DOM Elements. Ideally also jQuery objects and/or different selectors.

As it is now, I have to dynamically make up some ids for multiple charts I have on the same page, making sure I don't generate any duplicate id. I'm posting this specifically for the igDataChart's legend but I think, at this point of the product, any option in wich a DOM Element is expected should accept any of those.

Thanks