Closed jme783 closed 9 years ago
It seems like the error is being triggered here in time.coffee
:
_annotateLayers: (prepared) ->
data = []
for own i, layer of prepared
copy = Epoch.Util.copy(layer)
start = Math.max(0, layer.values.length - @options.historySize)
copy.values = layer.values.slice(start)
classes = ['layer']
classes.push "category#{(i|0)+1}"
classes.push(Epoch.Util.dasherize layer.label) if layer.label?
copy.className = classes.join(' ')
copy.visible = true
data.push copy
return data
Specifically on this line: start = Math.max(0, layer.values.length - @options.historySize)
This seems to be an issue with the minified version as if I run cake build
on the repo then use the unminified version of the library, this issue goes away.
+1
@ryanlitalien sadly it doesn't seem like Fastly is maintaining this repo anymore. It's a nice tool but without active maintainers I'm not sure I would recommend continuing to use it
Thanks @jme783, I figured as much. I switched to NVD3.js.
Fastly did fail to maintain this project, and after some prodding they were gracious enough to let me back in to work on it. Thanks for digging into the problem some, I will take a look and let you know if I can see what is happening here.
This no longer seems to be an issue after using the new build scripts. I was able to get the chart to correctly render with both the regular and minified versions of the library.
Hi there, I'm trying to create a basic real-time bar graph from the library. I installed the package from bower and loaded jQuery and d3 before epoch. However, I am getting an error when trying to run the following simple code from the example:
I receive the following error:
It's hard for me to debug this as the JS file is minified. Any ideas on what may be going wrong? Thanks in advance! This seems to happen with any real-time chart I try to use
time.area
,time.line
, etc.