You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i created a custom chart using d3fc. Now i want to integrate this chart in my react application, i took the approach with integrating it by creating a web component of my chart using shadow dom.
This is the basic html structure of the web component, so the outer-container and the chart-container are correctly occupying the specified dimensions. but the d3fc group constructed by the cartesian chart component is not taking the complete dimensions.
also during the setup of chart i logged the dimensions before setting up the x and y scales they correctly display the specified height.
Additionally, for some reason the scales are not being setup correctly
as you can see in my cartesian chart setup i have specified for y axis to be aligned to left and x axis to be bottom but they both seem no not align accordingly , but rather they align at the bottom of the d3fc group element.
How do i fix this problem, is it because of using it inside the shadow dom or something.
also additionally the canvas plot area height is also 0.
So i created a custom chart using d3fc. Now i want to integrate this chart in my react application, i took the approach with integrating it by creating a web component of my chart using shadow dom.
This is the basic html structure of the web component, so the outer-container and the chart-container are correctly occupying the specified dimensions. but the d3fc group constructed by the cartesian chart component is not taking the complete dimensions.
also during the setup of chart i logged the dimensions before setting up the x and y scales they correctly display the specified height.
Additionally, for some reason the scales are not being setup correctly
Also another problem is :
This is the init chart func is called when a data property of the class has been changed
This is the react component that uses the web component.
Please help me fix this issue.
The text was updated successfully, but these errors were encountered: