splunk / splunk-heatwave-viz

A heatmap vizualization of bucketed ranged data over time.
Apache License 2.0
22 stars 13 forks source link

problem making it work #13

Closed grundsch closed 11 years ago

grundsch commented 11 years ago

Hi,

sorry if I'm just stupid, but I cannot get it working. When doing a simple timechart query (like "* | timechart count by host"), the heatwave stays empty. With splunk on Splunk, I then see the following error in the webservice log: 2013-03-15 14:03:01,336 ERROR [51431c0554367ea10] utility:63 - name=javascript, class=Splunk.Error, lineNumber=1034, message=TypeError: invalid 'in' operand b, fileName=http://xxxx:8000/en-GB/static/@143156:0/app/splunk-heatwave-viz/d3.v3.js/d3.v3.js

in the webconsole of firefox, I see these logs:

[14:23:41.981] POST http://xxx:8000/en-US/api/search/jobs [HTTP/1.1 200 OK 141ms] [14:23:42.153] POST http://xxxx:8000/en-US/api/search/jobs/1363353821.44/control [HTTP/1.1 200 OK 63ms] [14:23:42.154] GET http://xxxx:8000/en-US/api/search/jobs?s=1363353821.44&wait=0 [HTTP/1.1 200 OK 62ms] [14:23:42.503] GET http://xxxx:8000/en-US/api/search/jobs?s=1363353821.44&wait=0 [HTTP/1.1 200 OK 32ms] [14:23:42.575] GET http://xxxx:8000/en-US/splunkd/search/jobs/1363353821.44/results_preview?output_mode=json [HTTP/1.1 200 OK 83ms] [14:23:42.613] Unexpected value translate(0,NaN) parsing transform attribute. @ http://xxxx:8000/en-US/static/@143156:0/app/splunk-heatwave-viz/d3.v3.js/d3.v3.js:1529 [14:23:42.617] TypeError: invalid 'in' operand b @ http://xxxx:8000/en-US/static/@143156:0/app/splunk-heatwave-viz/d3.v3.js/d3.v3.js:1034

but checking the job results, I don't see an obvious responsible...

I made another query, where I ensured no empty or null value, same errors.

any idea why?

thanks, steph

konradr commented 11 years ago

Hi, Steph

Thanks for your feedbeck, we've recreated the bug in firefox where svg returns different size value than in chrome or safari. We'll push a hotfix soon, meanwhile your search/app should work fine in Chrome or Safari.

Thanks, Konrad

mklich commented 11 years ago

I've commited a fix to the develop branch.