Commit Graph

18 Commits

Author SHA1 Message Date
Robin Hu
5bce7a4d07 Updated stackedAreaChartTest to show example with less than four points.
CHecking if issue #89 manifests itself.
2013-08-05 11:55:08 -04:00
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.
2013-08-04 21:39:02 -04:00
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
2013-08-03 23:38:31 -04:00
Robin Hu
e891716b11 Adding various pieChart tests. 2013-08-03 23:24:32 -04:00
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.
2013-08-03 23:12:53 -04:00
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.
2013-07-25 14:23:51 -04:00
Robin Hu
9227616db2 Adding new test page for Scatter chart (and scatter plus line). 2013-07-13 20:58:47 -04:00
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.
2013-07-12 23:24:12 -04:00
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.
2013-07-08 17:19:10 -04:00
Robin Hu
6ab5b447d4 Adding unit test page (very crude) for nv.interactiveBisect, since it is a
very important function.
2013-07-07 00:02:34 -04:00
Robin Hu
79b196cb41 Added simple navigation links between lineChart, StackedAreaChart and
CumulativeChart test examples.
2013-07-06 14:58:50 -04:00
Robin Hu
5f3e6d5691 Fixed merge conflicts when merging with origin/nvd3-UI-134 2013-07-06 10:33:54 -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
9b3858e926 Created new general stylesheet for the nvd3 chart test pages.
Added test page for stacked area chart.
2013-07-05 15:32:47 -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
Robin Hu
0b3ef24e0b Added test page for lineChart. Continued work on making the interactive line layer. 2013-07-03 13:43:32 -04:00