Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blazor WASM] Canvas/`Cartesian Chart is ignoring height of parent container. #552

Closed
Caphaldor opened this issue Jul 14, 2022 · 6 comments
Labels
bug Something isn't working not verified It is probably an issue, but we have not enough evidence to mark this as a bug.

Comments

@Caphaldor
Copy link

As the title states, in Blazor when defining a height it is ignored and instead calculated at about half of the width.
Definition in the Razor Component:
<div style="width: 100%;height: 900px"> <CartesianChart Series="series" XAxes="xAxes"/> </div>
The Page is looking like this:
Site
If you need more info don't hesitate to message me.

@Caphaldor
Copy link
Author

.NET 6
LiveCharts2 Beta 300

@beto-rodriguez
Copy link
Owner

beto-rodriguez commented Jul 15, 2022

Hi and thanks for the issue.

I think this is related to the <h1> tag I forgot to delete in a previous release:

image

Probably this will be gone in the next release since that tag is removed already.

@beto-rodriguez beto-rodriguez added the not verified It is probably an issue, but we have not enough evidence to mark this as a bug. label Jul 15, 2022
@Caphaldor
Copy link
Author

Tested it with Beta 330 nand observed the same issue as seen in the attached screenshot.
Chart

@Caphaldor
Copy link
Author

@beto-rodriguez Any update?

@bbo76
Copy link

bbo76 commented Aug 11, 2022

I have the same problem in v350, it doesn't take the parent dimension

@beto-rodriguez beto-rodriguez added the bug Something isn't working label Aug 19, 2022
beto-rodriguez added a commit that referenced this issue Aug 19, 2022
@beto-rodriguez
Copy link
Owner

Sorry about the late response, this should be fixed now with the referenced commit and will be included in the next version of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working not verified It is probably an issue, but we have not enough evidence to mark this as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants