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

Claycss.com charts errors #638

Closed
carloslancha opened this issue Feb 26, 2018 · 5 comments
Closed

Claycss.com charts errors #638

carloslancha opened this issue Feb 26, 2018 · 5 comments
Assignees
Labels
type: bug Issues reporting that Component is not doing what should be done

Comments

@carloslancha
Copy link
Contributor

While render:html task electric is throwing the following errors:

Warning: Error: Invalid state passed to 'regions'. Expected type 'object', but received type 'array'. Passed to 'Chart'.
Warning: Error: Invalid state passed to 'axisX.tick.format'. Expected type 'function', but received type 'string'. Passed to 'Chart'.

Could you take a look @julien ? Thx!

@carloslancha carloslancha added the type: bug Issues reporting that Component is not doing what should be done label Feb 26, 2018
@julien
Copy link
Contributor

julien commented Feb 26, 2018

@carloslancha sure.

@julien
Copy link
Contributor

julien commented Feb 26, 2018

@carloslancha the first error

Warning: Error: Invalid state passed to 'regions'. Expected type 'object', but received type 'array'. Passed to 'Chart'.

is fixed in this PR #645.

Concerning the second one

Warning: Error: Invalid state passed to 'axisX.tick.format'. Expected type 'function', but received type 'string'. Passed to 'Chart'.

I'm still not sure how to fix it. In this case we would need to create a <script> tag in the .md file and pass it to the .soy template call.
@zenorocha Do you think this would be possible?

@julien
Copy link
Contributor

julien commented Mar 15, 2018

Hi @zenorocha, have you had a chance to think about this?

@zenorocha
Copy link
Contributor

Sorry guys, I wasn't able to take a look on this, I suggest putting someone else to evaluate it

@matuzalemsteles
Copy link
Member

hey guys, this is no longer reproduced since we're with Gatsby. I'm closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issues reporting that Component is not doing what should be done
Projects
None yet
Development

No branches or pull requests

4 participants