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

Error: <rect> attribute height: A negative value is not valid. ("-64") #25

Closed
NegativeDearc opened this issue Nov 5, 2018 · 9 comments · May be fixed by estafette/estafette-ci-web#21
Closed

Comments

@NegativeDearc
Copy link

NegativeDearc commented Nov 5, 2018

if not give the prop of "width", plot can't be show correctly.

@junedchhipa
Copy link
Contributor

Can you please create a codepen? As I can't reproduce this issue on my side.

@junedchhipa junedchhipa added the question Further information is requested label Nov 5, 2018
@NegativeDearc
Copy link
Author

NegativeDearc commented Nov 5, 2018

Well yes I'll post code later(not sure how to use codepen) but let me explain what I'm doing firstly.

I'm using apexcharts for user profile component which is a full-screen dialog usually hidden but will be opened when click the user icon button, then will achieve data by axios.

Maybe related with the full-screen dialog because it's no way could be negative height for a plot?

@junedchhipa
Copy link
Contributor

Not sure if it is related with full-screen dialog.
But, I understood your point. If the chart tries to draw in a 0 width element, it will throw this error. You can try rendering the chart only when the dialog is open.

If you can try forking this Vue template of code-sandbox and reproduce the issue, I can look more.

@sachin-philip
Copy link

@junedchhipa Is there a way to dynamically set the width if not set? What I do at the moment is a kind of temp fix always adjusting the width as the number of data pair increase.

@junedchhipa
Copy link
Contributor

junedchhipa commented Nov 13, 2018

@Labtocat width: '100%' doesn't works? Where are you setting the width? In ApexCharts prop or in CSS?

@junedchhipa
Copy link
Contributor

Closing due to lack of response

@yvza
Copy link

yvza commented Nov 22, 2018

hy, i got same error
i use this chart https://github.com/apexcharts/apexcharts.js
like the first example of chart here https://apexcharts.com/docs/creating-first-javascript-chart/

the problem is trow a error like a image i have, chart not displayed in first page load
if i resizing viewport width, chart is showing xD
can u help me?

image 74

@junedchhipa junedchhipa reopened this Nov 22, 2018
@yvza
Copy link

yvza commented Nov 22, 2018

@Labtocat width: '100%' doesn't works? Where are you setting the width? In ApexCharts prop or in CSS?

in my css, width parent of #chart 100% also, and already set width and hight of #chart like https://codepen.io/apexcharts/pen/xYqyYm
i just test with single file, and its work fine
the error is displayed in my current project i have, but why?
im confused xd

@sachin-philip
Copy link

@junedchhipa sorry for late response. It didn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants