Robin Hu
9f2280bee7
Fixing issue #219 . Moving the jitter logic to after the scatter point's scale
...
has been determined.
Added line chart and scatter chart tests.
11 years ago
Tyler Wolf
aea9036ee2
Merge branch 'development' of https://github.com/novus/nvd3 into development
11 years ago
Robin Hu
0ead511d72
[cumulativeLineChart] Fixed bug where clicking on a point in the chart
...
would not move the index line.
11 years ago
Robin Hu
281f6cfbce
Fixed bug in tooltip.js, for situations where parentContainer is undefined.
...
Added tooltip.js script to pieChartTest.html
11 years ago
Robin Hu
16d0a843fc
[cumulativeLineChart] Fixing chart so that dragging index line turns off chart transitions.
11 years ago
Robin Hu
e33e102952
Bumping to version 1.1.5b, due to the addition of 'use strict' everywhere.
11 years ago
Robin Hu
f78caa70fa
Removing previousXCoordinate variable from interactiveLayer.js because it was not being referenced.
11 years ago
Robin Hu
7133a13d85
Fixed conflicts in tooltip.js when merging with origin/development.
11 years ago
Robin Hu
1522fee378
Merge branch 'development' of https://github.com/novus/nvd3 into development
11 years ago
Robin Hu
9fbe68c8d8
Adding "use strict"; in all chart code.
...
Fixed any exceptions thrown when "use strict" was added.
11 years ago
Robin Hu
6d0b196892
Fixing issue #139 . Logic in scatter.js for
...
when yDomain is a constant range (ie, [10,10]) is opposite
of what it should be. Added test cases in lineChartTest and
scatterChartTest.html.
11 years ago
Robin Hu
9770970f79
Fixing issue #190 . Changing logic inside scatterChart.js
...
so that scatter.xDomain and yDomain are not altered
unless xPadding and yPadding are non-zero.
11 years ago
Robin Hu
cdb7e3e271
Fixing bug where tooltips don't show up in right position
...
if the chart is inside a <div> with overflow:scroll
11 years ago
Robin Hu
efeba92bc8
Bumping to version 1.1.4b. This is because of the transitionDuration property added to many charts.
11 years ago
Tyler Wolf
d9cca0320f
lines are now 1.5px wide instead of 2.5px wide
11 years ago
Robin Hu
d8909d3217
Making default transitionDuration=250 for multibar. Rebuilding nv.d3.js
11 years ago
Robin Hu
435cea2cf7
Updated scatterChart with transitionDuration property.
11 years ago
Robin Hu
1f3f3589c3
Added transitionDuration to multiBarChart.
11 years ago
Robin Hu
9e947d4aec
Added transitionDuration to discreteBarChart.
11 years ago
Robin Hu
d57fa841ca
Added transitioDuration property to stackedAreaChart, lineChart, cumulativeLineChart.
11 years ago
Robin Hu
178700c896
Adding transitionDuration property to line.js
11 years ago
Robin Hu
1969a038d3
Merge branch 'development' of https://github.com/novus/nvd3 into development
11 years ago
Robin Hu
4fe7606c04
Updating scatterPlusLineChart.js to use legend.stateChange.
11 years ago
Robin Hu
acb310ceec
Updating almost all main chart types to use new legend.stateChange
...
code. All have been tested.
11 years ago
Robin Hu
73a59f6a07
Converting cumulativeLineChart to use legend stateChange dispatch.
...
Updated lineChart and stackedArea to update chart.state
whenever legend.stateChange is dispatched.
11 years ago
Robin Hu
6edf25b5a6
[stackedAreaChart] Adding legend stateChange listener and removing old
...
legend click code.
11 years ago
Robin Hu
f2375705a4
[legend.js] added radioButtonMode. If set to true, chart
...
legend will behave like a radio button group when clicked.
Mentioned in issue #168 .
11 years ago
Robin Hu
4e861eaba0
One of my projects is to overhaul the code for nv.models.legend.
...
Right now, we have duplicated code in all of our charts
for handling legendClick and legendDblClick. It turns out we
can handle this all in legend.js, and reduce the amount of
code in each chart model.
So far, I've converted lineChart.js to this new format.
11 years ago
Rusty Bailey
fa43a8388d
Add xRange and yRange methods to compliment {x,y}Domain methods.
11 years ago
Robin Hu
561fb5afe1
Merge branch 'development' of https://github.com/adjohnson916/nvd3 into development-127
...
Conflicts:
src/models/scatter.js
11 years ago
Robin Hu
552758c876
Bumping version to 1.1.2b, due to changes in how legend width is calculated for scatter and stacked charts.
11 years ago
Robin Hu
0edd39bb1c
For issue #171 , making stackedAreaChart and scatterChart legends
...
fill full available width if the controls are hidden.
11 years ago
Robin Hu
b9a2d618cc
historicalBar: Adding NaNtoZero check to bar height/y.
11 years ago
Robin Hu
718c7c9ee4
Adding nv-thin-line CSS class to make thinner lines.
11 years ago
Robin Hu
3dbdde795f
For PR #209 , adding test pieChart to pieChartTest.html.
...
Making 'key' the default label type if none specified.
11 years ago
Robin Hu
ce3de0d95c
Merge branch 'rb/pie_labels' of https://github.com/rustybailey/nvd3 into development
11 years ago
Robin Hu
9b941caeda
Merge branch 'master' into development
...
Conflicts:
nv.d3.js
nv.d3.min.js
src/core.js
11 years ago
Rusty Bailey
e47e048410
Add a labelType method for pieCharts to give to option to use 'key', 'value', or 'percent'
11 years ago
Robin Hu
5179633685
Merge branch 'master' of https://github.com/CentroNet-Marketing/nvd3 into master-patched
11 years ago
Robin Hu
646c54bf62
Fixing issue in legend.js I found while investigating
...
issue #171 . Turns out it's possible for a divide by zero
error to happen.
11 years ago
Robin Hu
4bb3531197
Issue #131 : fixing d="" error with lineWithFocusChart.
...
Need to add some defensive checks to make sure brush extent
is always greater than one.
11 years ago
Robin Hu
61ea02e264
Rebuilding nv.d3.js. Bumping version to 1.1.1b, due to stackedArea changes.
11 years ago
Robin Hu
19afd68f53
Adding transitionDuration option to stackedArea.
...
Adding transition to StackedAreaChart example.
11 years ago
Robin Hu
16f64b9821
Updating stackedArea.js to use d3 version 3 transition chaining syntax.
11 years ago
Robin Hu
d92428332c
Merge branch 'stackedarea' of https://github.com/MikeRoetgers/nvd3 into development
...
Conflicts:
src/models/stackedArea.js
11 years ago
Robin Hu
229cbd5121
Fixing tooltip flickering on IE.
...
Bumping development version # to 1.1.0b, as new significant features have been added.
Rebuilding nv.d3.js
11 years ago
Robin Hu
6dd18cdcee
On IE, tooltips for cumulativeLineChart were flickering
...
when mouse moved over an avgLine. Making pointer-events:none
the default for avgLine and x/y-axis.
Removing foregroundPointerEvents variable; not needed anymore.
11 years ago
Mike Rötgers
6d99aee7b9
refs #153 : add transitions
...
* transitions active again when path enters or exits chart
11 years ago
Robin Hu
c686b7a147
Pie chart's .nv-label needs a pointer-events:none rule.
...
This makes tooltips stable and not disappear when you mouse over a label.
Issue #48
11 years ago
Robin Hu
dc195e6e6e
Fixing syntax error in historicalBar.js.
...
Rebuilding nv.d3.js
11 years ago
Robin Hu
3883010ca4
Fixing issue #206 . The transitions in multiBar.js were not using the
...
proper d3 version3 transition chaining method.
11 years ago
Robin Hu
8a5ecbe037
Updating nvd3 programmatic version number to 1.0.0b
...
Rebuilding nv.d3.js. Updating README.md to remove note about 1.0.0b being in dev branch.
11 years ago
Robin Hu
dd718105c8
In historicalBar, changin d3.transition() to bars.transition().
11 years ago
Robin Hu
01db0e9751
Merge branch 'development' of https://github.com/novus/nvd3 into development
11 years ago
Robin Hu
535993aa7c
Adding real time bar chart test example. Updating historicalBar.js
...
to add a data key function for each bar <rect>.
Added transition to historicalBarChart.update, just like lineChart.
11 years ago
Robin Hu
2cf5b63c91
The whole concept of specifying a pie.values() function is
...
not consistent with other charts. For all pie charts,
the developer needs to make sure to just pass in an array of key-value
pairs. Nothing more. The example of nvd3.org is not the proper way of
passing data into pie charts.
Removing pie.values() functionality and putting console error message.
Updated examples. For issue #98 , #162 , #106
11 years ago
Robin Hu
5af04cb857
Fixing NVD3 issue #98 , 'Object #<Object> has no method 'map' on pieChart'.
...
Updating pieChart examples, so that [testData] becomes testData (no extra
array brackets needed).
Also adding pieChart test page.
11 years ago
Robin Hu
a552f5aa28
Added ability to double-click pie chart series
...
and have it be the only one selected.
11 years ago
Robin Hu
5d7570bbed
Merge branch 'group_spacing' of https://github.com/dimagi/nvd3 into master-patched
11 years ago
Robin Hu
2ed8169fcf
Merge branch 'master' of https://github.com/luizlaydner/nvd3 into master-patched
11 years ago
Robin Hu
9c0eb46f4a
Merge branch 'development' of https://github.com/Alric/nvd3 into development-bulletchart
11 years ago
Robin Hu
c51ccd122f
Merge branch 'patch-1' of https://github.com/tubaxenor/nvd3 into master-patched
11 years ago
Robin Hu
def5fa3cd2
Merge branch 'textanchor_style' of https://github.com/dimagi/nvd3 into master-patched
11 years ago
Robin Hu
71c14ad24d
Merge branch 'master' of https://github.com/fskreuz/nvd3 into master-patched
11 years ago
Robin Hu
44ec8ab87a
Fixing issue in interactiveGuideline, where mouseOut dispatch
...
should be fired when the user mouses out of the <svg> container,
and into a non-svg element.
11 years ago
Jacob Quant
9cac28a26a
Added type check for console.log to prevent IE8+modernizr issues
11 years ago
Robin Hu
799b06254c
To make the interactive layer work on Chrome, need
...
to put a transparent <rect> behind every chart.
11 years ago
Robin Hu
7f71b66b0c
Overhauling the logic for creating an interactive layer.
...
Basically, the <svg> container will now process all mousemove
events. This allows stackedAreaChart and CumulativeLineChart to
maintain some other forms of interaction.
11 years ago
Robin Hu
4abc8906a3
Merge branch 'development' of https://github.com/novus/nvd3 into development
11 years ago
Robin Hu
e182e081bf
Major change to interactiveLayer.js. Instead of creating
...
a svg <rect> element to process mousemove events, we are
attaching the mousemove event to the bounding <svg> container.
This allows stackedAreaChart to maintain some previous interactivity.
11 years ago
frank shao
058503a0be
Merge branch 'development' of https://github.com/novus/nvd3 into development
11 years ago
frank shao
147168ca9b
Lighten bullet shading
11 years ago
Tyler Wolf
c017c9443c
udpated indented tree to have links instead of handling click events
11 years ago
fskreuz
0331d2e650
Use style text-anchor to properly rotate ticks.
11 years ago
Tyler Wolf
e545d547de
update to tooltip positioning
11 years ago
Tyler Wolf
e918466d57
Merge branch 'development' of https://github.com/novus/nvd3 into development
...
Conflicts:
nv.d3.min.js
11 years ago
Tyler Wolf
e4b46f3c81
added case 'none' to tooltip code
11 years ago
Simon Kelly
0e6b742dab
use style text-anchor vs attribute to maintain consistency with d3: https://github.com/mbostock/d3/blob/master/src/svg/axis.js#L69
11 years ago
Robin Hu
3fc286a3aa
Adding try/catch block around getComputedtextLength.
...
Adding white-space:nowrap to nvtooltip.
11 years ago
Al Tenhundfeld
88fed7306d
Change bullet labels check to be more idiomatic JS.
11 years ago
Robin Hu
738a94f634
Increased tooltip transition speed.
11 years ago
Robin Hu
2725a44021
Adding with-3d-shadow style. This style class adds rounded corners and box shadow.
11 years ago
Robin Hu
c801cf2733
Putting back chart.container=this, in scatterChart.js.
...
A third party function we are using was referencing this property.
11 years ago
Al Tenhundfeld
3b7217b928
Add ability to provide custom labels to bullet chart.
11 years ago
tubaxenor
b1a7d2211c
add brushExtent to chart to enable the ability to set default focus range.
...
There is a brushExtent when init, so I guess maybe you guys just forgot to put the public function available.
11 years ago
Robin Hu
5f5c298ec7
Fixing line chart with SVG resize tooltip issues.
11 years ago
Robin Hu
94efcbad66
Brought back old tooltip transitions and box shadow...
...
but only if you supply the 'with-transitions' CSS class.
Also changed the nv-point.hover dot to a smaller, darker stroke.
11 years ago
Robin Hu
1621b83e7a
Cleaning up code in interactiveLayer -> mousemove, regarding
...
the IE 10 hack. It turns out that d3.event.offsetX/Y contains
the relative mouse coordinates needed. Using those instead.
11 years ago
Robin Hu
3266bc369d
Fixing bug on cumulative line chart where point hover circles
...
were not disappearing after moving the index line.
This is due to commit 065c8eb84d
.
11 years ago
Robin Hu
7bfc19b21f
Adding IE9+ fix so that mousing over a tooltip does not trigger
...
the elementMouseout dispatch. Without this, tooltips on IE are very buggy.
11 years ago
Robin Hu
0443d7c779
Removing some code I added in tooltip.js that clamped the svg bound top. Wasn't actually working.
11 years ago
Robin Hu
4b21903740
Adding unique ID to each tooltip in nv.models.tooltip.
11 years ago
Robin Hu
d8ba26dc06
Cleaning up code for the MSIE svg.getScreenCTM issue.
...
REbuilding nv.d3.js
11 years ago
Robin Hu
410569110e
Average lines on cumulative line chart had ability to go
...
off the <SVG> bounding rectangle. This caused issues on Firefox.
Changed code so that the average lines are 'clamped' within
the <SVG> bounding rect, and if they go off bounds, make them transparent.
11 years ago
Robin Hu
8608819e0d
Cumulative line chart old tooltips working again.
...
Needed to modify pointer-events depending on whether
useInteractiveGuideline was set to true or false.
11 years ago
Robin Hu
678beb63ef
Fixing issue where the 'IndexLine' in cumulative line chart was not draggable.
...
Needed to move interactive layer to the bottom of the SVG layer stack, and change pointer-events to none
for things above it.
11 years ago
Robin Hu
e6ea912eb6
Merge branch 'development' of https://github.com/novus/nvd3 into development
...
Conflicts:
nv.d3.min.js
11 years ago
frank shao
69c42a52a4
Fixed update issue with scatterplusline
11 years ago
Robin Hu
874e068d9f
The code to create the interactive guideline is now placed after
...
the code that creates the legend.
This fixes an issue where the guideline would extend past
the X-axis, when the legend was more than two lines.
11 years ago
Robin Hu
5e5ba5c34b
Merge branch 'development' into nvd3-UI-134
...
Conflicts:
nv.d3.min.js
11 years ago
Robin Hu
1a6b5dab13
Adding more inline comments to tooltip.js.
...
Removed an unused feature for bolding a row in the tooltip.
11 years ago
Robin Hu
3a75b583ca
Created more robust tooltip solution. Tooltips render inside the SVG's parent DIV.
...
They can be positioned, even if there are relative positioned elements above it.
11 years ago
Robin Hu
8dea03da44
Converted tooltip.js getTooltipContainer function to use d3.select.
...
Rebuilt nv.d3.js
11 years ago
Robin Hu
6e84a6845c
Tooltips are no longer rendered on document.body.
...
Instead, they are rendered inside the chart container.
Added some CSS styles to nvtooltip
11 years ago
Robin Hu
e1e9144e5f
Updating lineChartSVGResize example to use interactive guideline.
...
Rebuilding nv.d3.js.
11 years ago
Robin Hu
6c2f19a044
Updating CSS styling around table.td
11 years ago
Robin Hu
c13be39c12
Added inline comments.
...
Changed style td.legend to td.legend-color-guide, becuase it conflicts with another .legend style being used elsewhere.
11 years ago
Robin Hu
1ff26f5fab
Optimizing interactive layer code, so d3.mouse(this) is called only once per mousemove.
11 years ago
Robin Hu
75ff9267c8
Finally resolving the nagging issue in IE where tooltips
...
were not showing up in the right place, due to issue with d3.mouse.
The solution is to take the svg.getBoundingClientRect(), and
taking 25% of it's top and left values.
11 years ago
Robin Hu
792a36262d
Removed transitions from nv-point on hover.
11 years ago
Robin Hu
ca769e706d
Using svg.getBoundingClientRect() instead of elem.offsetLeft
...
when calculating tooltip position. Also replaced window.scollY with
pageYOffset. This is for Firefox and MSIE compatibility.
11 years ago
Robin Hu
14117b32de
Fixing a NASTY Microsoft IE bug I found during cross browser testing.
...
Mousing over SVG.rect returns wrong X,Y coordinates, but only in IE.
11 years ago
Robin Hu
8b870e6b0a
Created function to get the first non-svg parent element in tooltip.js.
...
Needed because in Firefox and IE, SVG.offsetParent does not exist.
11 years ago
Robin Hu
4b8ad322cf
Updating algorithm for calculating the tooltip offset positioning.
11 years ago
Robin Hu
65edf27199
Fixed bug in nv.interactiveBisect, for situations where the xAccessor is
...
function(d,i) { return i}
11 years ago
Robin Hu
fa89918faf
Removed trailing commas in interactiveLayer code. Caused javascript error/warning.
11 years ago
Robin Hu
3c6d1b65ee
Added historicalBar.interactive. If set to false, tooltips/hoverovers don't work.
11 years ago
Robin Hu
81bf049daa
The .nvd3 .nv-bars rect:hover style was incorrect. it needs to be "rect.hover",
...
because we are applying the hover class when we mouse over a bar.
11 years ago
Robin Hu
8479f5fce1
Exposed 'highlightPoint' and 'clearHighlights' in historicalBar.
11 years ago
Robin Hu
817340cff5
Instead of using a dispatch for handling 'highlightPoint' and 'clearHighlights', I am making
...
those functions a direct method of nv.models.scatter. So you just say scatter.highlightPoint,
instead of scatter.dispatch.highlightPoint.
11 years ago
Robin Hu
b07d1f2a87
Added back the 'tooltips' boolean flag to lineChart.dispatch.tooltipShow.
...
REbuilt nv.d3.js and minified version.
11 years ago
Robin Hu
1eb01d703d
Turning off Voronoi point path creation, if using the new interactive
...
guideline and tooltip.
Turns out, Voronoi is not needed in this new interactive mode!
11 years ago
Robin Hu
93a26c53c9
Fixing issue in scatterPlusLineChart where tooltips don't activate on
...
chart initial load.
11 years ago
Robin Hu
28d708d09d
Adding unit test on lineChartTest.html for when points are NaN, undefined,
...
etc.
Found a few edge cases where errors happen. Creating nv.utils.NaNtoZero()
function, to be used in places where points and lines are rendered.
Using NantoZero in scatter.js and interactiveGuideline.
11 years ago
Robin Hu
cdb9ea83ab
Integrated interactive guideline into stacked area charts. Updated the
...
stacked area example.
11 years ago
Robin Hu
d974556d05
Cleaned up interactive guideline dispatch code.
...
Integrated interactive guideline into cumulativeLineChart and updated
example.
11 years ago
Robin Hu
575ed7950e
Fixed tooltip display edge case, where if the tooltip is very large, it
...
will render off window if too close to the bottom.
11 years ago
Robin Hu
02da71c944
Added six more important line chart test cases. Changed tests to include
...
area charts.
11 years ago
Robin Hu
defaf765e8
Created nv.interactiveBisect utility function, and integrated it into the
...
interactiveGuideline logic. This function is used to find the x point
position given a mouseX location. It's a more robust solution. Made sure
chart tests passed.
11 years ago
Robin Hu
27d80457b9
Developed stronger backward compatibility with the old tooltip format. Old
...
tooltips work by default, but if you enable 'useInteractiveGuideline', the
new stuff will show.
11 years ago
Tyler Wolf
f84a1bfaa9
fixed bug on previous push
11 years ago
Tyler Wolf
45e5efa82c
fixed discrete bar chart y bleeding on ydomain min >0
11 years ago
Robin Hu
0b3ef24e0b
Added test page for lineChart. Continued work on making the interactive line layer.
11 years ago
Robin Hu
dbe826943f
Added interactiveLayer.js and integrated this utility into lineChart.js.
11 years ago
Robin Hu
c079f3e122
Added 'ClearHighlights' dispatch to scatter.
...
Created preliminary implementation of mousemove event on lineChart.
11 years ago
Robin Hu
4038a56c7a
Added color legend square to the tooltip for each series.
11 years ago
Robin Hu
4cbd253c67
Added the 'highlightPoint' dispatch on nv.models.scatter. This dispatch lets the programmer highlight any point on any series.
...
Currently used in lineChart to highlight points.
11 years ago
Robin Hu
dc66846d46
Updated scatter.js so that when you mouseover a path-point, it will return all series information in the mouse event dispatch.
...
Updated nv.models.tooltip with more features.
Updated styling of the tooltip.
11 years ago
Robin Hu
79fb28f088
Updated nv.models.tooltip to have a custom HTML content generator. The default is to put tooltip inside a <table> tag.
11 years ago
Robin Hu
c02705fc18
Created nv.models.tooltip in tooltip.js.
...
This new model encapsulates most of the tooltip functionality.
11 years ago
Robin Hu
9122285ae5
Merge branch 'development' of https://github.com/novus/nvd3 into development
...
Conflicts:
nv.d3.min.js
11 years ago
Luiz Laydner
1ca88b7956
correcting bug on heigth and width property accessors of stackedAreaChart
11 years ago
Tyler Wolf
c1db474991
Merge branch 'development' of https://github.com/novus/nvd3 into development
...
Conflicts:
nv.d3.min.js
11 years ago
Tyler Wolf
705f7efb29
Merge branch 'master' into development
...
Conflicts:
nv.d3.js
11 years ago
Tyler Wolf
9d13fb73a4
updated multiChart to allow changing yDomain on yscales
11 years ago
Robin Hu
d10350455e
Added 'rightAlign' property to legend.js (defaults to true). If set to 'false', legends become left aligned.
11 years ago
Robin Hu
24b949d931
Fixed two stacked area chart issues:
...
1. When in expanded view in stacked area chart, if there is missing data (zero data), 'holes' will be displayed in the chart where data is missing.
2. Tooltips used to be disabled if the stacked area showed values less than zero. This functionality has been disabled.
11 years ago
Robin Hu
c57626ad9b
Merge branch 'master' of https://github.com/novus/nvd3
...
Conflicts:
examples/historicalBarChart.html
nv.d3.js
nv.d3.min.js
src/models/historicalBarChart.js
src/nv.d3.css
11 years ago
Simon Kelly
3b8c364ff4
expose x-axis group spacing in multibar
11 years ago
Tyler Wolf
abeac917da
fixed a merge conflict. No change to master code, so this commit is not tagged
11 years ago