Skip to content

Commit

Permalink
Merge pull request #122 from Demonkratiy/dynamic_format
Browse files Browse the repository at this point in the history
Dynamic format
  • Loading branch information
MulyukovAidar authored Oct 3, 2023
2 parents 00533ca + 6e24d96 commit 4d39741
Show file tree
Hide file tree
Showing 12 changed files with 9,064 additions and 5,804 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
coverage
test
.eslintrc.js
karma.conf.ts
test.webpack.config.js
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
env: {
"browser": true,
"es6": true,
"es2017": true
},
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: ".",
},
plugins: [
"powerbi-visuals"
],
extends: [
"plugin:powerbi-visuals/recommended"
],
rules: {}
};
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This page contains information about changes to the 'Sample bar chart' Power BI visual.

## 4.0.0

* Added *dynamic format* feature support
* Migrated to ESlint
* Updated dependencies

## 3.2.0

* Added *modern tooltip* feature
Expand Down
284 changes: 146 additions & 138 deletions capabilities.json
Original file line number Diff line number Diff line change
@@ -1,152 +1,160 @@
{
"dataRoles": [
{
"displayName": "Category Data",
"name": "category",
"kind": "Grouping"
},
{
"displayName": "Measure Data",
"name": "measure",
"kind": "Measure"
},
"dataRoles": [
{
"displayName": "Category Data",
"name": "category",
"kind": "Grouping"
},
{
"displayName": "Measure Data",
"name": "measure",
"kind": "Measure"
},
{
"displayName": "Tooltips",
"name": "Tooltips",
"kind": "Measure"
}
],
"dataViewMappings": [
{
"conditions": [
{
"displayName": "Tooltips",
"name": "Tooltips",
"kind": "Measure"
"category": {
"max": 1
},
"measure": {
"max": 1
}
}
],
"dataViewMappings": [
{
"conditions": [
{
"category": {
"max": 1
},
"measure": {
"max": 1
}
}
],
"categorical": {
"categories": {
"for": {
"in": "category"
}
},
"values": {
"select": [
{
"bind": {
"to": "measure"
}
}
]
}
],
"categorical": {
"categories": {
"for": {
"in": "category"
}
},
"values": {
"select": [
{
"bind": {
"to": "measure"
}
}
]
}
],
"objects": {
"enableAxis": {
"displayName": "Enable Axis",
"properties": {
"show": {
"displayName": "Enable Axis",
"type": {
"bool": true
}
},
"fill": {
"displayName": "Color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
}
}
},
"colorSelector": {
"displayName": "Data Colors",
"properties": {
"fill": {
"displayName": "Color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
}
}
}
],
"objects": {
"general": {
"properties": {
"formatString": {
"type": {
"formatting": {
"formatString": true
}
}
}
}
},
"enableAxis": {
"displayName": "Enable Axis",
"properties": {
"show": {
"displayName": "Enable Axis",
"type": {
"bool": true
}
},
"generalView": {
"displayName": "General View",
"properties": {
"opacity": {
"displayName": "Bars Opacity",
"type": {
"integer": true
}
},
"showHelpLink": {
"displayName": "Show Help Button",
"type": {
"bool": true
}
}
"fill": {
"displayName": "Color",
"type": {
"fill": {
"solid": {
"color": true
}
}
},
"averageLine": {
"displayName": "Average Line",
"objectCategory": 2,
"properties": {
"show": {
"type": {
"bool": true
}
},
"displayName": {
"type": {
"text": true
}
},
"fill": {
"displayName": "Color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"showDataLabel": {
"displayName": "Data label",
"type": {
"bool": true
}
}
}
}
}
},
"colorSelector": {
"displayName": "Data Colors",
"properties": {
"fill": {
"displayName": "Color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
}
}
},
"tooltips": {
"supportedTypes": {
"default": true,
"canvas": true
"generalView": {
"displayName": "General View",
"properties": {
"opacity": {
"displayName": "Bars Opacity",
"type": {
"integer": true
}
},
"roles": [
"Tooltips"
],
"supportEnhancedTooltips": true
"showHelpLink": {
"displayName": "Show Help Button",
"type": {
"bool": true
}
}
}
},
"supportsLandingPage": false,
"drilldown": {
"roles": [
"category"
]
"averageLine": {
"displayName": "Average Line",
"objectCategory": 2,
"properties": {
"show": {
"type": {
"bool": true
}
},
"displayName": {
"type": {
"text": true
}
},
"fill": {
"displayName": "Color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"showDataLabel": {
"displayName": "Data label",
"type": {
"bool": true
}
}
}
}
}
},
"tooltips": {
"supportedTypes": {
"default": true,
"canvas": true
},
"roles": ["Tooltips"],
"supportEnhancedTooltips": true
},
"supportsLandingPage": false,
"drilldown": {
"roles": ["category"]
},
"privileges": []
}
Loading

0 comments on commit 4d39741

Please sign in to comment.