Commit Graph

16 Commits (bcd7c8584192ca66995f794474cb054159bb7039)

Author SHA1 Message Date
Luke Steensen cfba3d623a fix stacking of horizontal multibar
addresses issue #39
12 years ago
Itay Neeman 8a08435415 Fix a bug where the tooltip might show an incorrect stream (#62)
If you disabled a series in a multi-bar chart (either horizontal or
vertical), you would get incorrect tooltips. This was caused by the
fact that we only set the mouseover on the `enter()` elements, which
meant that nothing was being set when the chart was updated due to the
hiding. This caused us to close over the original value of the data

The fix is to set the mouseover on the entire selection, which updates
it every time the chart is updated. This also contains a small fix to
the horizontal multi-bar chart to have a more descriptive tooltip.
12 years ago
Itay Neeman ac3392519d Fix horizontal bar charts not updating correctly (#54)
Horizontal bar charts didn't update correctly - the data that the width
was calculated by was bound to previous values.

The fix was to use `select()` instead of `selectAll` on the bars
themselves (since there is only a single `rect` element in each). This
is because `selectAll` doesn't propagate data bindings, per the
following links:

https://groups.google.com/forum/?fromgroups#!topic/d3-js/PUansS150J0
https://groups.google.com/forum/?fromgroups#!topic/d3-js/272vChmijIw

It works the first time because of the `.enter()` definition which will
cause data to propagate, as mentioned in the above threads.
12 years ago
Bob Monteverde e7a8665705 fixing issues with labels not being positions correctly in firefox 12 years ago
Bob Monteverde 25883d2a5e removing the delay on the horizontal bar for now, also making sure 0 ticks are never removed from the axis 12 years ago
Bob Monteverde b9a8e0baaa Colors no longer have a ahrd limit of 10 or 20, they are dependant on how many colors are fed to teh chart, the default being 10 or 20, but suer can difine as many as they want 12 years ago
Bob Monteverde 2f155b88c8 Some tweak to the horizontal multi bar, now the staggered delay is option, defaulting to 1200ms divided by the number of x values 12 years ago
Bob Monteverde dc337a37ac Fixed value label position on transition on multiBarHorizontal 12 years ago
Bob Monteverde 9ffcafda70 Added optional values on grouped horizontal bar chart 12 years ago
Bob Monteverde d87cac47dd Some minor clean up of discreteBar and multibarHorizontal 12 years ago
Bob Monteverde a118e42ea4 created initial multibarHorizontalChart and simplified example 12 years ago
Bob Monteverde 4521b12ca4 Some minor naming fixes, also made forceY = '[0]' on bar charts by default 12 years ago
Bob Monteverde 3cd3798af1 Fixed tooltips on horizontal multibar 12 years ago
Bob Monteverde a215dee866 Working on improving the horizontal multibar, added new pos/neg example 12 years ago
Bob Monteverde 803dfc6b38 Added nvd3 class to the parent wrap of all graphs, fixed some colors and css 13 years ago
Bob Monteverde 5ca0f2b310 Some minor tweaks to the multiBar, and created the first cut horizontal version of the model 13 years ago