Skip to content

Commit d1e3d31

Browse files
vtkalekignatvilesov
authored andcommitted
Update 1.0.4 (#12)
* Return back jquery reference * Add Dot opacity property * Add axis color property * Add new basket "Counter"
1 parent d19005c commit d1e3d31

11 files changed

Lines changed: 188 additions & 45 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.0
2+
* Add Dot opacity property
3+
* Add axes color property
4+
* Add new basket "Counter"
5+
16
## 1.0.3
27
* Return jQuery reference
38

capabilities.json

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
{
1+
{
22
"dataRoles": [
33
{
44
"name": "Date",
55
"kind": "Grouping",
6-
"displayName": "Date"
6+
"displayName": "Date",
7+
"displayNameKey": "Visual_Date"
78
},
89
{
910
"name": "Values",
1011
"kind": "Measure",
11-
"displayName": "Values"
12+
"displayName": "Values",
13+
"displayNameKey": "Visual_Values"
14+
},
15+
{
16+
"name": "Counter",
17+
"kind": "Measure",
18+
"displayName": "Counter",
19+
"displayNameKey": "Visual_Counter"
1220
}
1321
],
1422
"dataViewMappings": [
@@ -23,6 +31,10 @@
2331
"min": 0,
2432
"max": 1
2533
},
34+
"Counter": {
35+
"min": 0,
36+
"max": 1
37+
},
2638
"Labels": {
2739
"min": 0,
2840
"max": 1
@@ -50,6 +62,11 @@
5062
"bind": {
5163
"to": "Values"
5264
}
65+
},
66+
{
67+
"bind": {
68+
"to": "Counter"
69+
}
5370
}
5471
]
5572
}
@@ -86,6 +103,13 @@
86103
"displayName": "Dot",
87104
"displayNameKey": "Visual_Dot",
88105
"properties": {
106+
"percentile": {
107+
"displayName": "Opacity",
108+
"displayNameKey": "Visual_Opacity",
109+
"type": {
110+
"numeric": true
111+
}
112+
},
89113
"color": {
90114
"displayName": "Fill",
91115
"displayNameKey": "Visual_Fill",
@@ -113,6 +137,28 @@
113137
}
114138
}
115139
},
140+
"axisOptions": {
141+
"displayName": "Axes properties",
142+
"displayNameKey": "Visual_AxisProperties",
143+
"properties": {
144+
"show": {
145+
"type": {
146+
"bool": true
147+
}
148+
},
149+
"color": {
150+
"displayName": "Color",
151+
"displayNameKey": "Visual_Color",
152+
"type": {
153+
"fill": {
154+
"solid": {
155+
"color": true
156+
}
157+
}
158+
}
159+
}
160+
}
161+
},
116162
"counteroptions": {
117163
"displayName": "Counter",
118164
"displayNameKey": "Visual_Counter",

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "powerbi-visuals-linedotchart",
33
"description": "LineDot Chart",
4-
"version": "1.0.3",
4+
"version": "1.1.0",
55
"author": {
66
"name": "Microsoft",
77
"email": "pbicvsupport@microsoft.com"
@@ -40,10 +40,10 @@
4040
"karma-typescript-preprocessor": "0.3.0",
4141
"lodash": "4.16.2",
4242
"powerbi-visuals-tools": "1.7.1",
43-
"powerbi-visuals-utils-chartutils": "0.3.0",
44-
"powerbi-visuals-utils-dataviewutils": "1.0.1",
45-
"powerbi-visuals-utils-testutils": "0.2.2",
46-
"powerbi-visuals-utils-tooltiputils": "0.3.0",
43+
"powerbi-visuals-utils-chartutils": "1.2.0",
44+
"powerbi-visuals-utils-dataviewutils": "1.2.0",
45+
"powerbi-visuals-utils-testutils": "1.0.1",
46+
"powerbi-visuals-utils-tooltiputils": "1.0.0",
4747
"tslint": "3.15.1",
4848
"tslint-microsoft-contrib": "^5.0.0",
4949
"typescript": "2.1.4"

pbiviz.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "LineDot Chart",
55
"guid": "LineDotChart1460463831201",
66
"visualClassName": "LineDotChart",
7-
"version": "1.0.3",
7+
"version": "1.1.0",
88
"description": "The LineDot chart is an animated line chart with fun animated dots. Use the LineDot chart to engage your audience especially in a presentation context. The bubbles size can be dynamic based on data you provide. A counter is provided that you can use to show a running value as the chart animates. Format options are provided for Lines, Dots, and Animation.",
99
"supportUrl": "http://community.powerbi.com",
1010
"gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-linedotchart"

src/behavior.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module powerbi.extensibility.visual {
5656
let hasHighlights: boolean = this.hasHighlights;
5757

5858
this.selection.style("opacity", (d: LineDotPoint) => {
59-
return lineDotChartUtils.getFillOpacity(d.selected, d.highlight, !d.highlight && hasSelection, !d.selected && hasHighlights);
59+
return lineDotChartUtils.getFillOpacity(d, d.selected, d.highlight, !d.highlight && hasSelection, !d.selected && hasHighlights);
6060
});
6161
}
6262
}

src/dataInterfaces.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ module powerbi.extensibility.visual {
4141
dot: number;
4242
sum: number;
4343
highlight?: boolean;
44+
opacity: number;
45+
counter: any;
4446
}
4547

4648
export interface Legend {

src/settings.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,19 @@ module powerbi.extensibility.visual {
2828
import DataViewObjectsParser = powerbi.extensibility.utils.dataview.DataViewObjectsParser;
2929

3030
export class LineDotChartSettings extends DataViewObjectsParser {
31+
public isCounterDateTime: boolean = false;
32+
public axisOptions: AxisSettings = new AxisSettings();
3133
public lineoptions: LineSettings = new LineSettings();
3234
public dotoptions: DotSettings = new DotSettings();
3335
public counteroptions: CounterSettings = new CounterSettings();
3436
public misc: MiscSettings = new MiscSettings();
3537
}
3638

39+
export class AxisSettings {
40+
public show: boolean = true;
41+
public color: string = "black";
42+
}
43+
3744
export class LineSettings {
3845
public fill: string = "rgb(102, 212, 204)";
3946
public lineThickness: number = 3;
@@ -43,6 +50,8 @@ module powerbi.extensibility.visual {
4350
public color: string = "#005c55";
4451
public dotSizeMin: number = 4;
4552
public dotSizeMax: number = 38;
53+
// Opacity
54+
public percentile: number = 100;
4655
}
4756

4857
export class CounterSettings {
@@ -54,4 +63,4 @@ module powerbi.extensibility.visual {
5463
public isStopped: boolean = true;
5564
public duration: number = 20;
5665
}
57-
}
66+
}

0 commit comments

Comments
 (0)