Change the CSS of a Vaadin Chart that is inside a component

I want to change the style of a chart that is inside a component according to the view of where it included.

I made the component with the idea of being able to reuse it. The style I have only been able to change from the HTML to customize the vaadin-chart-default-theme, but this does not work for me as it is for all the views where I include the component.

I think the style should be able to establish from the view HTML, but the vaadin chart doesn’t take it. What would be the correct way to do this?

Thanks,

Jorge.-

Hi Jorge,

I made the component with the idea of being able to reuse it

Is this component a custom element or a standard html element (e.g something that extends a div)?