danvk / dygraphs

Interactive visualizations of time series using JavaScript and the HTML canvas tag
http://dygraphs.com
Other
3.17k stars 606 forks source link

Second is not shown properly when using javascript date object #402

Open danvk opened 9 years ago

danvk commented 9 years ago

From sanju.to...@gmail.com on May 16, 2013 09:13:11

Please compare the following pages : http://dygraphs.com/gallery/#g/dynamic-update http://jsfiddle.net/api/post/jquery/1.4/ Seconds are clipped or partially visible on chrome, FF, of demo in the website page.

But it looks fine in the jsfiddle .

Whenever you use javascript Date object for native data the same issue is replicated. Tested on Chrome,FF

Original issue: http://code.google.com/p/dygraphs/issues/detail?id=472

danvk commented 9 years ago

From konigsb...@gmail.com on September 13, 2013 10:00:30

This is an interesting bug. First, if the font were not Arial, and were instead Times New Roman, the problem would go away.

Additionally, I'm not the legend expert, but it seems that there's something weirdly complicated about figuring out how to extend the minimum width of a legend label. I've spent some time on this, and am still not quite there. I'll get to it as a matter of priority. Thanks for the report.

Status: Accepted
Labels: Component-UI

danvk commented 9 years ago

It's a bit ridiculous that dygraphs forces you to specify a label widths in pixels. Ideally it would calculate these for you, ala gviz.