Commit Graph

776 Commits

Author SHA1 Message Date
Robin Hu
65edf27199 Fixed bug in nv.interactiveBisect, for situations where the xAccessor is
function(d,i) { return i}
2013-07-06 13:25:52 -04:00
Robin Hu
fa89918faf Removed trailing commas in interactiveLayer code. Caused javascript error/warning. 2013-07-06 12:47:03 -04:00
Robin Hu
3c6d1b65ee Added historicalBar.interactive. If set to false, tooltips/hoverovers don't work. 2013-07-06 11:25:29 -04:00
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.
2013-07-06 11:16:26 -04:00
Robin Hu
8479f5fce1 Exposed 'highlightPoint' and 'clearHighlights' in historicalBar. 2013-07-06 11:12:19 -04:00
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.
2013-07-06 11:05:23 -04:00
Robin Hu
b07d1f2a87 Added back the 'tooltips' boolean flag to lineChart.dispatch.tooltipShow.
REbuilt nv.d3.js and minified version.
2013-07-06 10:46:17 -04:00
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!
2013-07-05 18:35:16 -04:00
Robin Hu
93a26c53c9 Fixing issue in scatterPlusLineChart where tooltips don't activate on
chart initial load.
2013-07-05 18:08:45 -04:00
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.
2013-07-05 16:14:48 -04:00
Robin Hu
cdb9ea83ab Integrated interactive guideline into stacked area charts. Updated the
stacked area example.
2013-07-04 23:04:58 -04:00
Robin Hu
d974556d05 Cleaned up interactive guideline dispatch code.
Integrated interactive guideline into cumulativeLineChart and updated
example.
2013-07-04 22:18:02 -04:00
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.
2013-07-04 21:27:58 -04:00
Robin Hu
02da71c944 Added six more important line chart test cases. Changed tests to include
area charts.
2013-07-04 17:45:42 -04:00
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.
2013-07-04 12:21:12 -04:00
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.
2013-07-03 23:17:08 -04:00
Tyler Wolf
f84a1bfaa9 fixed bug on previous push 2013-07-03 15:46:12 -04:00
Tyler Wolf
45e5efa82c fixed discrete bar chart y bleeding on ydomain min >0 2013-07-03 15:33:34 -04:00
Robin Hu
0b3ef24e0b Added test page for lineChart. Continued work on making the interactive line layer. 2013-07-03 13:43:32 -04:00
Robin Hu
dbe826943f Added interactiveLayer.js and integrated this utility into lineChart.js. 2013-07-03 10:33:48 -04:00
Robin Hu
c079f3e122 Added 'ClearHighlights' dispatch to scatter.
Created preliminary implementation of mousemove event on lineChart.
2013-07-02 18:18:13 -04:00
Robin Hu
4038a56c7a Added color legend square to the tooltip for each series. 2013-07-02 17:14:43 -04:00
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.
2013-07-02 16:41:24 -04:00
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.
2013-07-02 16:07:20 -04:00
Robin Hu
79fb28f088 Updated nv.models.tooltip to have a custom HTML content generator. The default is to put tooltip inside a <table> tag. 2013-07-02 15:25:04 -04:00
Robin Hu
c02705fc18 Created nv.models.tooltip in tooltip.js.
This new model encapsulates most of the tooltip functionality.
2013-07-02 14:37:54 -04:00
Robin Hu
9122285ae5 Merge branch 'development' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-07-01 10:32:04 -04:00
Tyler Wolf
c1db474991 Merge branch 'development' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-06-28 11:27:46 -04:00
Tyler Wolf
705f7efb29 Merge branch 'master' into development
Conflicts:
	nv.d3.js
2013-06-28 11:26:43 -04:00
Tyler Wolf
9d13fb73a4 updated multiChart to allow changing yDomain on yscales 2013-06-28 11:26:12 -04:00
Robin Hu
d10350455e Added 'rightAlign' property to legend.js (defaults to true). If set to 'false', legends become left aligned. 2013-06-27 15:39:18 -04:00
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.
2013-06-25 12:06:14 -04:00
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
2013-06-21 15:48:43 -04:00
Tyler Wolf
abeac917da fixed a merge conflict. No change to master code, so this commit is not tagged 2013-06-18 18:59:14 -04:00
Tyler Wolf
086e0e5d9e Merge branch 'grunt' of https://github.com/lihongxun945/nvd3 into lihongxun945-grunt
Conflicts:
	nv.d3.min.js
2013-06-18 18:54:34 -04:00
Robin Hu
6b63db67d0 Updated several charts so that the showXAxis, showYAxis and rightAlignYAxis options are available for use. 2013-06-17 10:24:09 -04:00
Robin Hu
0151cdccab Made it so that double clicking a legend item will cause all other series' to be disabled. 2013-06-11 16:38:39 -04:00
Robin Hu
739b93fecf Adding ability to right align the Y-axis for historical bar and line charts. 2013-06-11 12:59:33 -04:00
Robin Hu
319520513f Updated historical bar chart so that the xAxis.ticks property must be set by the user of the chart. Also changed is so that the y-axis has 0 transition. 2013-06-10 12:02:56 -04:00
Robin Hu
62edb49ab8 Added showXAxis and showYAxis feature to lineChart and historicalBarChart. 2013-06-07 17:07:00 -04:00
Robin Hu
7bf1091f41 Adding historical bar chart. 2013-06-07 16:34:57 -04:00
Robin Hu
1703cc428a Adding historical bar chart code. 2013-06-07 16:24:51 -04:00
Robin Hu
65b97714fa Merge branch 'master' of https://github.com/novus/nvd3
Conflicts:
	nv.d3.min.js
2013-06-07 16:05:49 -04:00
Robin Hu
a9b6f3ab09 FIxing bug in line.js. 2013-06-07 15:34:49 -04:00
Bob Monteverde
065c8eb84d removed transition and delay on tooltips, you can uncomment to revert this. Minor fix to scatter, points will keep custom classes after transiiton 2013-06-06 17:57:32 -04:00
Dingo
b0bc28cbe0 fixed cumulativeLineChart drag lag 2013-06-03 23:51:42 -04:00
Tyler Wolf
af8b13dd48 Merge branch 'master' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-05-31 10:00:03 -04:00
frank shao
90e4078941 Adjusted jitter in scatter.js 2013-05-31 09:57:33 -04:00
Tyler Wolf
a437d1ef0e Merge branch 'master' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-05-31 09:48:48 -04:00
Robin Hu
8731046948 Issue #140. Added ability to stagger the x-axis labels on Multibar charts. 2013-05-22 14:54:31 -04:00
Tyler Wolf
bd0aab25ca lots of changes 2013-05-17 19:31:30 -04:00
Tyler Wolf
1ac80d87c8 Merge branch 'master' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-05-17 16:49:32 -04:00
Tyler Wolf
a6c18a730a almost there 2013-05-17 16:48:52 -04:00
Robin Hu
3e48d32290 Altered the way 'jittering' is handled for scatter plots. This should fix any d3.geom.voronoi issues we encountered. 2013-05-15 13:14:01 -04:00
Tyler Wolf
fb5897eb52 progress 2013-05-13 19:09:23 -04:00
Tyler Wolf
a67a42333e updates, on hperf pages 2013-05-13 15:14:32 -04:00
twolfnovus
a65b5c4988 Merge branch 'master' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-05-13 12:03:13 -04:00
Robin Hu
ba44aa3053 Fixing issue #136. Improved logic in tooltip.js for handling <svg> and <g> tags. 2013-05-10 09:31:02 -04:00
Robin Hu
bdeb27a47f Fixed issue #22. 2013-05-09 17:09:55 -04:00
twolfnovus
f108de0bd1 Merge branch 'master' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-05-09 11:47:46 -04:00
Robin Hu
d690c17a2b Fixed issue #25. Updated logic in tooltip.js, so that tooltips are not inserted into SVG containers. 2013-05-08 13:12:51 -04:00
Robin Hu
4ba155d733 For ticket AN-617. Added ability to create an 'average' horizontal line for cumulative line charts. Updated the example HTML file too. 2013-05-08 10:40:05 -04:00
Robin Hu
95b0459d27 Fixed issue #76. Tooltips were not rendering for bullet charts. 2013-05-07 15:52:46 -04:00
Robin Hu
92df22993d Added calcApproxTextWidth util function. Fixed overlapping legend, as noted in issue #107. 2013-05-07 14:26:00 -04:00
Robin Hu
0c422148d9 Merge branch 'master' into development
Conflicts:
	nv.d3.min.js
2013-05-07 12:04:13 -04:00
Robin Hu
6fcee4e17d Removed some line breaks that were added. 2013-05-07 11:59:29 -04:00
Robin Hu
0894152def Fixed issue #131. Was able to remove errors:
d='MZ', cx="NaN", cy="NaN".  The error "Problem parsing d=''" remains.
2013-05-07 11:56:42 -04:00
twolfnovus
f00781535b Merge branch 'master' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.js
	nv.d3.min.js
	src/models/multiBar.js
2013-05-07 11:06:52 -04:00
Robin Hu
c5d7a63cfb For issue 77. Changed some code in multiBar.js to use selection.transition() instead of d3.transition(selection) syntax. 2013-05-07 09:48:08 -04:00
twolfnovus
a10c25b333 a few changes for v3 upgrade 2013-05-06 18:02:23 -04:00
twolfnovus
0d5f297d61 updated cumulativeLineChart.js 2013-05-02 13:34:36 -04:00
frank shao
ba59c9e019 #128 fixed 2013-05-02 11:52:47 -04:00
lihongxun
2a394feab3 add grunt, see more in README.md about how to use intstall and use grunt 2013-04-24 21:14:11 +08:00
Tyler Wolf
b682cf6ad3 Merge branch 'master' into development
Conflicts:
	nv.d3.min.js
2013-04-19 09:59:11 -04:00
Tyler Wolf
43e86f5405 fixed some small, but problematic issues with indented tree 2013-04-19 09:53:29 -04:00
Dingo
76b97fde13 all models updated to run examples using d3.v3 2013-04-16 15:54:46 -07:00
Dingo
dd94b599fe Merge branch 'development' into d3v3_Upgrade 2013-04-16 10:23:46 -07:00
Dingo
ad288b96f4 Merge branch 'master' of https://github.com/novus/nvd3 into d3v3_Upgrade 2013-04-16 10:23:20 -07:00
Dingo
18b6fd4cbf Merge branch 'master' of https://github.com/novus/nvd3 into development
Conflicts:
	nv.d3.min.js
2013-04-16 10:17:05 -07:00
Dingo
80dd13db90 Merge branch 'development' of https://github.com/novus/nvd3 into development 2013-04-16 10:14:16 -07:00
Dingo
833d4391f4 changes to linePlusBar and linePlusBarWithFocus 2013-04-16 10:14:03 -07:00
ciaranj
b2ef5f2254 Fixes Issue #109 - Prototype.js breaks StackedAreaChart
It appears the specification of the sizeDomain as a single element
array causes d3.js to use the wrong interpolatin function internally.
2013-04-15 12:06:39 +01:00
Tyler Wolf
93ed2ad226 added a few semicolons 2013-04-08 17:04:33 -04:00
Tyler Wolf
36d4e999f6 removed logging from multibar.js 2013-04-08 15:29:57 -04:00
Tyler Wolf
7d69723a2d added hideable attribute to multiBar.js so that the bars can be hidden the multibar is part of a larger chart 2013-04-08 12:39:33 -04:00
Dingo
f41a4db9b9 updating alphabetically, working on indentedTree.js 2013-04-06 11:46:51 -04:00
Dingo
0593a97d44 fixing issue with lineWithFocusChart.js 2013-04-06 11:19:12 -04:00
Tyler Wolf
db144a9290 updated many models for state management 2013-04-04 15:45:26 -04:00
Tyler Wolf
7335631472 merged mookie5dc-master pull request into master 2013-04-03 14:07:18 -04:00
Tyler Wolf
e092bac1c2 fixed update for parallelCoords.js, ran make for all merged pull requests 2013-04-03 14:03:25 -04:00
Tyler Wolf
fb8bfe4a6a Merge pull request #6 from kapep/master
Fixed rotateLabels option for multiBarCharts
2013-04-03 10:59:33 -07:00
Tyler Wolf
c1804b29c1 Merge pull request #23 from ggriffiniii/master
Adjust tickLabel's on update rather than enter.
2013-04-03 10:50:49 -07:00
Mike Wallace
8632be22be stackedAreaChart triggers stateChange on areaClick 2013-03-28 16:42:09 +00:00
Tyler Wolf
3ea026ab6d Merge pull request #74 from kawanet/issue-73
Issue #73 Error: Invalid value for <rect> attribute y="NaN", height="NaN"
2013-03-27 15:29:58 -07:00
Tyler Wolf
bfcbd0c764 Merge pull request #75 from wvanbergen/master
Tooltip formatting bugfix
2013-03-27 15:18:07 -07:00
Tyler Wolf
843d31229f Merge pull request #78 from michalkutil/multiBarChart-legendWidth
Multi bar chart legend width
2013-03-27 14:46:41 -07:00
Tyler Wolf
569b2a0b0d Merge pull request #93 from bertrandchenal/master
Add support for startAngle and endAngle on pie chart
2013-03-27 14:38:06 -07:00
Tyler Wolf
536e4fe531 merged pfeffer's pull request, also updated indented tree zerofilter 2013-03-27 17:35:42 -04:00
Tyler Wolf
2572a1ed21 Merge branch 'changes' of https://github.com/pfeffer/nvd3 into pfeffer-changes 2013-03-27 17:17:54 -04:00
Tyler Wolf
1327ca3f86 Added filter functionality to indentedtree model (can be used to filter values besides zero) 2013-03-26 19:45:56 -04:00