Skip to content

Commit

Permalink
tweak barGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Jan 6, 2017
1 parent 62f1247 commit 3d9ff46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chart/bar/PictorialBarSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ define(function(require) {
symbolBoundingData: null,
symbolPatternSize: 400, // 400 * 400 px

barGap: '-100%', // In most case, overlap is needed.

// z can be set in data item, which is z2 actually.

// Disable progressive
Expand Down
6 changes: 6 additions & 0 deletions src/layout/barGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ define(function(require) {
);
var barGap = seriesModel.get('barGap');
var barCategoryGap = seriesModel.get('barCategoryGap');

// Caution: In a single coordinate system, these barGrid attributes
// will be shared by series. Consider that they have default values,
// only the attributes set on the last series will work.
// Do not change this fact unless there will be a break change.

// TODO
if (barWidth && !stacks[stackId].width) {
barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);
Expand Down

0 comments on commit 3d9ff46

Please sign in to comment.