diff --git a/README.md b/README.md
index 9b5f86d4..f4f1c188 100644
--- a/README.md
+++ b/README.md
@@ -154,7 +154,7 @@ slow, so when only the non-minified library is needed, one can use the
## Custom builds
-The folder `dist` contains bundled versions of vis.js for direct use in the browser. These bundles contain the all visualizations and includes external dependencies such as hammer.js and moment.js.
+The folder `dist` contains bundled versions of vis.js for direct use in the browser. These bundles contain all the visualizations and include external dependencies such as hammer.js and moment.js.
The source code of vis.js consists of commonjs modules, which makes it possible to create custom bundles using tools like [Browserify](http://browserify.org/) or [Webpack](http://webpack.github.io/). This can be bundling just one visualization like the Timeline, or bundling vis.js as part of your own browserified web application.
diff --git a/docs/data/dataset.html b/docs/data/dataset.html
index 3f90ead4..af0f2b4d 100644
--- a/docs/data/dataset.html
+++ b/docs/data/dataset.html
@@ -598,9 +598,11 @@ function (event, properties, senderId) {
update
, and remove
,
properties
is always an object containing a property
items
, which contains an array with the ids of the affected
- items. The update
event has an extra field oldData
- containing the original data of the updated items, and a field data
- containing the changes: the properties of the items that are being updated.
+ items. The update
and remove
events have an extra
+ field oldData
containing the original data of the items in the
+ dataset before the items were updated or removed. The update
+ event also contains a field data
containing the changes:
+ the properties of the items that are being updated.
rangechange
, rangechanged
, select
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.rangechange
, rangechanged
, select
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.zoomCtrl
is defined or zoomable
is false
. Notice that defining this option as true
will override verticalScroll
scroll event but not eliminate the vertical scrollbar.
+ true
will NOT override horizontalScroll
. The scroll event will be vertically ignored, but a vertical scrollbar will be visible
+ rangechange
, rangechanged
, select
, itemover
, itemout
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.rangechange
, rangechanged
, select
, itemover
, itemout
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.time
can be a Date object, numeric timestamp, or ISO date string.
- Parameter id
is the idof the custom time bar, and is undefined
by default.
+ Parameter id
is the id of the custom time bar, and is undefined
by default.
item
: the item being manipulatedcallback
: a callback function which must be invoked to report back. The callback must be invoked as callback(item or null)
. Here, item
can contain changes to the passed item. Parameter `item` typically contains fields `content`, `start`, and optionally `end`. The type of `start` and `end` is determined by the DataSet type configuration and is `Date` by default. When invoked as callback(null)
, the action will be cancelled.callback
: a callback function which must be invoked to report back. The callback must be invoked as callback(item)
or callback(null)
.
+ Here, item
can contain changes to the passed item. Parameter item
typically contains fields `content`, `start`, and optionally `end`. The type of `start`
+ and `end` is determined by the DataSet type configuration and is `Date` by default. When invoked as callback(null)
, the action will be cancelled.@@ -1583,7 +1602,7 @@ var items = new vis.DataSet([
- Timeline supports templates to format item contents. Any template engine (such as handlebars or mustache) can be used, and one can also manually build HTML. In the options, one can provide a template handler. This handler is a function accepting an items data as argument, and outputs formatted HTML: + Timeline supports templates to format item contents. Any template engine (such as handlebars or mustache) can be used, and one can also manually build HTML. In the options, one can provide a template handler. This handler is a function accepting an item's data as argument, and outputs formatted HTML:
var options = { @@ -1680,7 +1699,7 @@ var options = {Create a new locale
- To load a locale into the Timeline not supported by default, one can add a new locale to the optionlocales
: + To load a locale (that is not supported by default) into the Timeline, one can add a new locale to the optionlocales
:var options = { locales: { @@ -1736,7 +1755,7 @@ var options = {Time zone
- By default, the Timeline displays time in local time. To display a Timeline in an other time zone or in UTC, the date constructor can be overloaded via the configuration option
moment
, which by default is the constructor function of moment.js. More information about UTC with moment.js can be found in the docs: http://momentjs.com/docs/#/parsing/utc/. + By default, the Timeline displays time in local time. To display a Timeline in another time zone or in UTC, the date constructor can be overloaded via the configuration optionmoment
, which by default is the constructor function of moment.js. More information about UTC with moment.js can be found in the docs: http://momentjs.com/docs/#/parsing/utc/.@@ -1810,7 +1829,7 @@ var options = {
Days vis-date1
,vis-date2
, ...,vis-date31
- Months + vis-januari
,vis-februari
,vis-march
,vis-april
,vis-may
,vis-june
,vis-july
,vis-august
,vis-september
,vis-october
,vis-november
,vis-december
Months vis-january
,vis-february
,vis-march
,vis-april
,vis-may
,vis-june
,vis-july
,vis-august
,vis-september
,vis-october
,vis-november
,vis-december
Years diff --git a/examples/graph3d/11_tooltips.html b/examples/graph3d/11_tooltips.html index 39af19aa..c37b35f4 100644 --- a/examples/graph3d/11_tooltips.html +++ b/examples/graph3d/11_tooltips.html @@ -5,6 +5,12 @@ @@ -24,11 +30,11 @@ // Create and populate a data table. data = new vis.DataSet(); - var extra_content = [ - 'Arbitrary information', - 'You can access data from the point source object', - 'Tooltip example content', - ]; + var extra_content = [ + 'Arbitrary information', + 'You can access data from the point source object', + 'Tooltip example content', + ]; // create some nice looking data with sin/cos var steps = 5; // number of datapoints will be steps*steps @@ -42,7 +48,7 @@ data.add({x:x, y:y, z: z, style:value, extra: extra_content[(x*y) % extra_content.length]}); } else { - data.add({x:x, y:y, z: z, extra: extra_content[(x*y) % extra_content.length]}); + data.add({x:x, y:y, z: z, extra: extra_content[(x*y) % extra_content.length]}); } } } @@ -61,8 +67,8 @@ //tooltip: true, tooltip: function (point) { // parameter point contains properties x, y, z, and data - // data is the original object passed to the point constructor - return 'value: ' + point.z + ' vis-year2014
,vis-year2015
, ...
' + point.data.extra; + // data is the original object passed to the point constructor + return 'value: ' + point.z + '
' + point.data.extra; }, keepAspectRatio: true, @@ -106,6 +112,7 @@ - +Hover the mouse cursor over the graph to see tooltips.+