Skip to content

Commit

Permalink
Min height adjustment (#28)
Browse files Browse the repository at this point in the history
* Fix of additional hight calculation

* version increase

* new tests

* Member renaming

* Member renaming 2

* review fixes
  • Loading branch information
EugeneElkin authored and uve committed Jul 30, 2018
1 parent 8ef6103 commit d2fa634
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 122 deletions.
5 changes: 5 additions & 0 deletions changelog.md
@@ -1,3 +1,8 @@
## 2.1.2

* Additional minimal height calculation now is applied only if rotation option is enabled
* Length of X-axis labels now is calculated based on formatted labels

## 2.1.1

* Minimal height was reduced from 100 to 80
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-mekkochart",
"version": "2.1.1",
"version": "2.1.2",
"description": "A Mekko chart is a mix of a 100% stacked column chart and a 100% stacked bar chart combined into one view. Similar to a treemap, the dimensional values are represented by length and width of each rectangle. The width of a column is proportional to the total value of the column.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions pbiviz.json
@@ -1,10 +1,10 @@
{
"visual": {
"name": "MekkoChart",
"displayName": "Mekko Chart 2.1.1",
"displayName": "Mekko Chart 2.1.2",
"guid": "MekkoChart1449744733038",
"visualClassName": "MekkoChart",
"version": "2.1.1",
"version": "2.1.2",
"description": "A Mekko chart is a mix of a 100% stacked column chart and a 100% stacked bar chart combined into one view. Similar to a treemap, the dimensional values are represented by length and width of each rectangle. The width of a column is proportional to the total value of the column.",
"supportUrl": "http://community.powerbi.com",
"gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-mekkochart"
Expand Down
10 changes: 10 additions & 0 deletions src/dataIntrefaces.ts
Expand Up @@ -375,6 +375,16 @@ module powerbi.extensibility.visual {
y2LabelColor?: Fill;
}

export interface MekkoChartRenderOptions {
axes: MekkoChartAxisProperties;
width: number;
tickLabelMargins: any;
chartHasAxisLabels: boolean;
axisLabels: MekkoChartAxesLabels;
viewport: IViewport;
suppressAnimations: boolean;
}

export interface MekkoCategoryProperties {
color?: string;
identity?: ISelectionId;
Expand Down

0 comments on commit d2fa634

Please sign in to comment.