Browse Source

updated docs

flowchartTest
Alex de Mulder 9 years ago
parent
commit
633e689d90
4 changed files with 26203 additions and 26207 deletions
  1. +26163
    -26163
      dist/vis.js
  2. +1
    -1
      docs/graph2d/index.html
  3. +4
    -4
      lib/timeline/component/LineGraph.js
  4. +35
    -39
      test/networkTest.html

+ 26163
- 26163
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
docs/graph2d/index.html View File

@ -661,7 +661,7 @@ function (value) {
They are sorted by the x value. If sort is enabled, more optimizations are possible, increasing the performance.</td>
</tr>
<tr>
<td class="greenField">stack</td>
<td>stack</td>
<td>Boolean</td>
<td>true</td>
<td>If stack is enabled, the graphs will be stacked upon eachother when applicable. This currently only works with bar graphs but linegraph support is being worked on.</td>

+ 4
- 4
lib/timeline/component/LineGraph.js View File

@ -795,8 +795,8 @@ LineGraph.prototype._getYRanges = function (groupIds, groupsData, groupRanges) {
if (groupData.length > 0) {
group = this.groups[groupIds[i]];
// if bar graphs are stacked, their range need to be handled differently and accumulated over all groups.
if (options.stack === true) {
if (options.yAxisOrientation == 'left') {combinedDataLeft = combinedDataLeft .concat(group.getData(groupData));}
if (options.stack === true && options.style === 'bar') {
if (options.yAxisOrientation === 'left') {combinedDataLeft = combinedDataLeft .concat(group.getData(groupData));}
else {combinedDataRight = combinedDataRight.concat(group.getData(groupData));}
}
else {
@ -809,8 +809,8 @@ LineGraph.prototype._getYRanges = function (groupIds, groupsData, groupRanges) {
BarFunctions.getStackedYRange(combinedDataLeft , groupRanges, groupIds, '__barStackLeft' , 'left' );
BarFunctions.getStackedYRange(combinedDataRight, groupRanges, groupIds, '__barStackRight', 'right');
// if line graphs are stacked, their range need to be handled differently and accumulated over all groups.
LineFunctions.getStackedYRange(combinedDataLeft , groupRanges, groupIds, '__lineStackLeft' , 'left' );
LineFunctions.getStackedYRange(combinedDataRight, groupRanges, groupIds, '__lineStackRight', 'right');
//LineFunctions.getStackedYRange(combinedDataLeft , groupRanges, groupIds, '__lineStackLeft' , 'left' );
//LineFunctions.getStackedYRange(combinedDataRight, groupRanges, groupIds, '__lineStackRight', 'right');
}
};

+ 35
- 39
test/networkTest.html
File diff suppressed because it is too large
View File


Loading…
Cancel
Save