Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ private void createDetailSheet(final IndicatorDTO indicator) throws Throwable {
Map<String, Integer> columnIndexMap = new HashMap<String, Integer>();
for (PivotTableData.Axis axis : leaves) {
CalcUtils.putHeader(row, ++cellIndex, axis.getLabel());
axis.cellIndexValue(String.valueOf(cellIndex));
columnIndexMap.put(axis.getLabel(), cellIndex);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ private void createDetailSheet(final IndicatorDTO indicator) {
Map<String, Integer> columnIndexMap = new HashMap<String, Integer>();
for (PivotTableData.Axis axis : leaves) {
utils.putHeader(row, ++cellIndex, axis.getLabel());
axis.cellIndexValue(String.valueOf(cellIndex));
columnIndexMap.put(axis.getLabel(), cellIndex);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public PivotTableData(List<Dimension> rowDimensions, List<Dimension> columnDimen
rootRow = new Axis();
rootColumn = new Axis();
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manishvishnoi2 : Redundant space. Needs to be removed before the pull request can be merged into the codebase.

public boolean isEmpty() {
return rootRow.isLeaf() && rootColumn.isLeaf();
}
Expand Down Expand Up @@ -215,6 +215,11 @@ public Axis(Axis parent, Dimension dimension, DimensionCategory category, String
this.category = category;
this.label = label;
}

public void cellIndexValue(String label){

this.label = label;
}

public Axis getChild(DimensionCategory category) {
return childMap.get(category);
Expand Down