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

Timeline bug in Google Visualization #2269

Open
avger opened this issue May 17, 2016 · 7 comments
Open

Timeline bug in Google Visualization #2269

avger opened this issue May 17, 2016 · 7 comments
Labels

Comments

@avger
Copy link

avger commented May 17, 2016

I am using the visualization timeline. I ran into an odd case where the following code works. But if you comment out the first row..."Why is this line Necessary?"... I get an "Cannot read property 'v' of undefined" error. Or if I change the start date of the same line from 0ms to 10ms, I also get the v undefined error.

I think is is most likely a range issue of some sort, but i'm pretty sure is a bug.

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['timeline']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var container = document.getElementById('timeline'); var chart = new google.visualization.Timeline(container); var dataTable = new google.visualization.DataTable(); dataTable.addColumn({ type: 'string', id: 'Handle' }); dataTable.addColumn({ type: 'string', id: 'Description' }); dataTable.addColumn({ type: 'date', id: 'Start' }); dataTable.addColumn({ type: 'date', id: 'End' }); dataTable.addRows([

['Why is this line Necessary?', '', new Date(0, 0, 0, 0, 0, 0 , 0), new Date(0, 0, 0, 0,0,0,698) ],

['23-Tx Length', '0x 10 00 02 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00', new Date(0, 0, 0, 0,0,00,576), new Date(0, 0, 0, 0,0,00,578) ],
['27-Tx Data', '0x 2a 8e de 83 49 b7 0f e6 75 37 bf 04 7e 03 27 62', new Date(0, 0, 0, 0,0,00,655), new Date(0, 0, 0, 0,0,00,657) ],
['31-Tx Crc', '0x a0 26', new Date(0, 0, 0, 0,0,00,656), new Date(0, 0, 0, 0,0,00,658) ],
['35-Tx ACK/NAK', '0x 01', new Date(0, 0, 0, 0,0,00,695), new Date(0, 0, 0, 0,0,00,697) ]

]);

var options = {
timeline: { colorByRowLabel: true }
};
chart.draw(dataTable, options);
}
</script>

@avger
Copy link
Author

avger commented May 17, 2016

HTML did not seem to come through. I'll try attaching .html file.
bleTraceMAPPReconnectionChallengeRequest.html.txt

@dlaliberte
Copy link

The timeline chart doesn't know how to deal with ranges less than 1 second, so extending to 0, or extending to 1000 milliseconds makes it work well enough.

Sorry about that. This is definitely a bug, which we should at least catch and report in a more meaningful way.

@dlaliberte dlaliberte added the bug label May 18, 2016
@benhowell
Copy link

Same bug appears in Gantt charts.

@aalcutt
Copy link

aalcutt commented Dec 19, 2017

Is there any way to fix this or work around it?

@SemihGk
Copy link

SemihGk commented Feb 4, 2019

This bug seems very old, but I do experience the same issue. Is there any plan for a possible fix?

@namedgraph
Copy link

Hello? Any fix in sight?

@crufter
Copy link

crufter commented Feb 5, 2020

Just got bit by this too.

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

No branches or pull requests

7 participants