jettro / jettro/c3-angular-directive

TypeError: a.axisTimeFormat.multi is not a function

Open
#132 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
201
Forks
96
PR merge metrics
No merged PRs in 30d

Description

Hello,

So I managed to get the examples working in just a plain, frontend app that was hosted on a local apache server, so this one works:

https://github.com/JohnAntonusMaximus/c3-example

However as soon as I set up the same exact app structure on the front end of a NodeJS-backed application, I keep getting the following error in the browser console when I switch to the one view with the chart in it:

**TypeError: a.axisTimeFormat.multi is not a function
at e.i.initParams (c3.min.js:1)
at e.i.init (c3.min.js:1)
at new d (c3.min.js:1)
at Object.k.generate (c3.min.js:1)
at ChartController.d [as showGraph](c3-angular.min.js:5)
at c3-angular.min.js:5
at angular.js:17918
at e (angular.js:5552)
at angular.js:5829(anonymous function) @ angular.js:12520(anonymous function) @ angular.js:9292(anonymous function) @ angular.js:17921e @ angular.js:5552(anonymous function) @ angular.js:5829**

The only thing I can isolate it to is that is obviously Node related because it works perfectly without a Node server. I'm res.rendering the index.html page from the server, I have all my scripts in the same order on the front end, but no matter what I do, I keep getting that error in the console when I switch to the view with the chart. Please help, just spent about 6 hours on this with no progress.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.