This example shows the some of the graphs outlined on the right side using the yAxisOrientation option within the groups.
- We also show a few more custom styles for the graphs.
- Finally, the legend is manually positioned. Both the left and right axis
+ We also show a few more custom styles for the graphs. Finally, the legend is manually positioned. Both the left and right axis
have their own legend. If one of the axis is unused, the legend is not shown. The options for the legend have been split
- in a left and a right segment. Since this example shows the right axis, the right legend is configured.
+ in a left and a right segment. The default position of the left axis has been changed.
- This example shows the most basic functionality of the vis.js Graph2D module. An array or a vis.Dataset can be used as input.
- In the following examples we'll explore the options Graph2D offest for customization. This example uses all default settings.
- There are 10 predefined styles that will be cycled through automatically when you add different groups. Alternatively you can
- create your own styling.
+ The Graph2D makes use of Catmull-Rom spline interpolation.
+ The user can configure these per group, or globally. In this example we show all 4 possiblities. The differences are in the parametrization of
+ the curves. The options are uniform, chordal and centripetal. Alternatively you can disable the Catmull-Rom interpolation and
+ a linear interpolation will be used. The centripetal parametrization produces the best result (no self intersection, yet follows the line closely) and is therefore the default setting.
- Graph2D is built upon the framework of the newly refactored timeline. A lot of the timeline options will also apply to Graph2D.
- In these examples however, we will focus on what's new in Graph2D!
+ For both the centripetal and chordal parametrization, the distances between the points have to be calculated and this makes these methods computationally intensive
+ if there are very many points. The uniform parametrization still has to do transformations, though it does not have to calculate the distance between point. Finally, the
+ linear interpolation is the fastest method. For more on the Catmull-Rom method, C. Yuksel et al. have an interesting paper titled ″On the parametrization of Catmull-Rom Curves″.
+ You can determine the height of the Graph2D seperately from the height of the frame. If the graphHeight
+ is defined, and the height is not, the frame will auto-scale to accommodate the graphHeight. If the height
+ is defined as well, the user can scroll up and down vertically as well as horizontally to view the graph.
+
+ Vertical scrolling is planned, though not yet available. The graphHeight also does not conform if only the height is defined.
+
+ Graph2D does not sort the data. It is plotted as it is inputted. If you want your data to be sorted, sort your data.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/graph2d/08_performance.html b/examples/graph2d/08_performance.html
new file mode 100644
index 00000000..d9fbb923
--- /dev/null
+++ b/examples/graph2d/08_performance.html
@@ -0,0 +1,116 @@
+
+
+
+ Graph2D | Performance
+
+
+
+
+
+
+
+
+
+
+
Graph2D | Performance
+
+ This example shows the some of the graphs outlined on the right side using the yAxisOrientation option within the groups.
+ We also show a few more custom styles for the graphs. Finally, the legend is manually positioned. Both the left and right axis
+ have their own legend. If one of the axis is unused, the legend is not shown. The options for the legend have been split
+ in a left and a right segment. The default position of the left axis has been changed.
+
+
+