Commit Graph

808 Commits (master)

Author SHA1 Message Date
Rusty Bailey a4ef6d3c5c Expose d3's stack offset to allow for percent-based stack using 'expand' - fix #225 11 years ago
Robin Hu 843577aff8 Fixing transition issues with lineWithFocusChart. Added transitionDuration
property, defaulted to 250
11 years ago
Robin Hu 804cb72738 Readded the fix for multiBar data enter key. 11 years ago
Robin Hu ad1a18d761 Fixing transition issues with linePlusBarWithFocusChart. 11 years ago
Robin Hu 6244f27d0e Removing 'singlePoint' undefined variable in historicalBar.js 11 years ago
Robin Hu 5e78ec57c3 Fixing a bug related to transitions and delays with mutliBar. 11 years ago
Robin Hu 32f69f5377 Fixed stackedArea chart transitionDuration. 11 years ago
Robin Hu f286b1b4e9 Fixing scatterChart transitionDuration property. 11 years ago
Robin Hu 46f0f215ac Fixed multibarHorizontal chart transitionDuration 11 years ago
Robin Hu aaf46a48ff Updated multiBar enter() data to use key equal to the data index. 11 years ago
Robin Hu 3e78184006 Fixed multibar transitions. Removed the bar.transition.delay. It was
annoying.
11 years ago
Robin Hu 13e7d4c688 Updating historicalBar chart transitionDuration. 11 years ago
Robin Hu acef1926f0 Fixing up transitions on discreteBar chart. 11 years ago
Robin Hu 9a9e34bb30 Updating cumulativeLineChart to use transitionDuration differently. 11 years ago
Robin Hu 7adc37f1f8 Removed transitionDuration from line.js and axis.js, and modified
lineChart.js to pass transition in via inheritance.
11 years ago
Robin Hu 1a86e271c1 The <rect> inside lineChart and stackedAreaChart needs to have its
width/height updated on redraw, so the new tooltips can be interacted
with.
11 years ago
Robin Hu 42c155eb1b Merge remote-tracking branch 'origin/development' into development 11 years ago
Robin Hu 3c5990d815 Issue #226. Changing multibarHorizontalBar nv-group to use index as key when entering. 11 years ago
Tyler Wolf e7782c1a08 another fixed to controls on stackedareachart 11 years ago
Tyler Wolf cfc706bfa9 fix to previous fix 11 years ago
Robin Hu caa6b56c73 Merge branch 'group_spacing' of https://github.com/dimagi/nvd3 into development
Conflicts:
	src/models/multiBar.js
11 years ago
Tyler Wolf 3bda8b90f2 added classing to links in indentedTree 11 years ago
Robin Hu 4ea8115a6a Fixing issue in multibarChart where the axisLabel was being
rotated along with the xAxis tick labels, when rotateLabels
was set.
11 years ago
Robin Hu 8c6b6eb643 Removed a line from multibar chart that was referencing undefined variable
'singlePoint'.
11 years ago
Robin Hu 7d5a3ac209 Adding transitionDuration to axis showMaxMin. 11 years ago
Robin Hu 6f6a472ed1 Removing transition() chaining in multibar. 11 years ago
Robin Hu 58d60f9cb5 Added back the transitionDuration property to nv.models.axis. Added transitionDuration to historicalBar. 11 years ago
Robin Hu e2ef9489da Added transitionDuration to multiBarHorizontal. Bumped version to 1.1.9b 11 years ago
Robin Hu c2cc7772d1 Added nv-legend-* class to legend text and circle icon.
Fixing some IE bugs related to the tooltip.
11 years ago
Robin Hu 17a21cc0f4 Found an issue when using transition().duration() with axis.
It was causing a certain kind of 'flickering' with historicalBars. Removing that usage for now.
11 years ago
Tyler Wolf c0db335539 Merge branch 'development' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
11 years ago
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
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 16d0a843fc [cumulativeLineChart] Fixing chart so that dragging index line turns off chart transitions. 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 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 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 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 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
Rusty Bailey e47e048410 Add a labelType method for pieCharts to give to option to use 'key', 'value', or 'percent' 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 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 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 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 dd718105c8 In historicalBar, changin d3.transition() to bars.transition(). 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 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
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
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 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 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 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 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 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 3c6d1b65ee Added historicalBar.interactive. If set to false, tooltips/hoverovers don't work. 11 years ago
Robin Hu 8479f5fce1 Exposed 'highlightPoint' and 'clearHighlights' in historicalBar. 11 years ago