From 51e2135f53fbc40e9f6c02f11d71588b78749661 Mon Sep 17 00:00:00 2001
From: Manuel Schallar
The following code shows how to create a Graph2d and provide it with data.
- More examples can be found in the examples directory.
<!DOCTYPE HTML> @@ -424,8 +424,8 @@ var options = {Boolean false If two datapoints of a barchart overlap, they are drawn over eachother by default. If sideBySide is set to true, they will be drawn side by side. - See example 10 for more information. - When using groups, see example 11. + See example 10 for more information. + When using groups, see example 11. @@ -639,7 +639,7 @@ onRender: function(item, group, graph2d) { @@ -659,7 +659,7 @@ onRender: function(item, group, graph2d) {Object You can use this to toggle the visibility of groups per graph2D instance. This is different from setting the visibility flag of the groups since - this is not communicated across instances of graph2d. Take a look at Example 14 + this is not communicated across instances of graph2d. Take a look at Example 14 for more explanation. interpolation.parametrization String 'centripetal' -Define the type of parametrizaion for the catmullRom interpolation. Example 7 shows the different parametrizations. The options are 'centripetal' (best results), 'chordal' and 'uniform'. Uniform is the computationally cheapest variant. + Define the type of parametrizaion for the catmullRom interpolation. Example 7 shows the different parametrizations. The options are 'centripetal' (best results), 'chordal' and 'uniform'. Uniform is the computationally cheapest variant. If interpolation is disabled, linear interpolation is used. @@ -758,7 +758,7 @@ onRender: function(item, group, graph2d) { @@ -1399,8 +1399,8 @@ Graph2d.off('rangechanged', onChange);yAxisOrientation String 'left' -This defines with which axis, left or right, the graph is coupled. Example 5 shows groups with different Y axis. If no groups are coupled + This defines with which axis, left or right, the graph is coupled. Example 5 shows groups with different Y axis. If no groups are coupled with an axis, it will not be shown. Additionally, Graph2d has 10 preset styles for graphs, which are cycled through when loading groups. These styles can be overwritten - as well, along with defining your own classes to style the graphs! Example 4 and - example 5 show the usage of custom styles. + as well, along with defining your own classes to style the graphs! Example 4 and + example 5 show the usage of custom styles.