timeglider / jquery_widget

Timeglider's JS Widget component. See README for details.
193 stars 41 forks source link

Zoom one axis only #57

Closed nrv closed 11 years ago

nrv commented 11 years ago

Hi,

when zooming, the font size of events is also changed. Is there a way to avoid this and have only the time zoomed ? This would allow to better display portions of time where a huge amount of events are stacked.

Nicolas

timeglider commented 11 years ago

There's an option for the widget called "size_importance"; set to false, the font size will not change, and will only be set to the widget's "base_font_size" property. The reason we created the size-importance feature, though, is actually to allow for better rendering of large sets of data — but it means that you need to apply relevant/accurate "importance" values for events, too. font-size = (importance/zoom_level) * base_font_size.