Skip to content

Commit 002bf2b

Browse files
authored
Merge branch 'vnext' into rivanova/button-group-samples
2 parents 01fcf0e + a8df118 commit 002bf2b

317 files changed

Lines changed: 26593 additions & 34449 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

azure-pipelines/build-pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ parameters:
1111
displayName: 'Get verbose output from steps - where configurable'
1212
type: boolean
1313
default: false
14+
- name: shouldCleanPostExectuion
15+
displayName: 'Clean all pipeline dirs after the pipeline finishes?'
16+
type: boolean
17+
default: true
1418

1519
name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
1620

@@ -133,3 +137,6 @@ stages:
133137
inputs:
134138
targetPath: '$(Build.ArtifactStagingDirectory)/ReactSamples.zip'
135139
artifact: 'ReactSamplesBrowser'
140+
141+
- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
142+
- task: PostBuildCleanup@4

samples/charts/category-chart/annotations-highlighting/src/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,12 @@ export default class Sample extends React.Component<any, any> {
7575
computedPlotAreaMarginMode="Series"
7676
isHorizontalZoomEnabled="false"
7777
isVerticalZoomEnabled="false"
78-
includedProperties={["month", "temperature"]}
7978
dataSource={this.temperatureAnnotatedData}
80-
isCategoryHighlightingEnabled="true"
8179
highlightingMode="FadeOthersSpecific"
8280
highlightingBehavior="NearestItemsAndSeries"
83-
crosshairsAnnotationYAxisPrecision="0"
8481
yAxisMaximumValue="35"
85-
yAxisLabelLocation="OutsideRight">
82+
yAxisLabelLocation="OutsideRight"
83+
toolTipType="None">
8684
</IgrCategoryChart>
8785
</div>
8886
</div>
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
export class ContinentsBirthRateItem {
2+
public constructor(init: Partial<ContinentsBirthRateItem>) {
3+
Object.assign(this, init);
4+
}
5+
6+
public Year: string;
7+
public Asia: number;
8+
public Africa: number;
9+
public Europe: number;
10+
public NorthAmerica: number;
11+
public SouthAmerica: number;
12+
public Oceania: number;
13+
14+
}
15+
export class ContinentsBirthRate extends Array<ContinentsBirthRateItem> {
16+
public constructor(items: Array<ContinentsBirthRateItem> | number = -1) {
17+
if (Array.isArray(items)) {
18+
super(...items);
19+
} else {
20+
const newItems = [
21+
new ContinentsBirthRateItem(
22+
{
23+
Year: `1950`,
24+
Asia: 62,
25+
Africa: 13,
26+
Europe: 10,
27+
NorthAmerica: 4,
28+
SouthAmerica: 8,
29+
Oceania: 1
30+
}),
31+
new ContinentsBirthRateItem(
32+
{
33+
Year: `1960`,
34+
Asia: 68,
35+
Africa: 12,
36+
Europe: 15,
37+
NorthAmerica: 4,
38+
SouthAmerica: 9,
39+
Oceania: 2
40+
}),
41+
new ContinentsBirthRateItem(
42+
{
43+
Year: `1970`,
44+
Asia: 80,
45+
Africa: 17,
46+
Europe: 11,
47+
NorthAmerica: 3,
48+
SouthAmerica: 9,
49+
Oceania: 1
50+
}),
51+
new ContinentsBirthRateItem(
52+
{
53+
Year: `1980`,
54+
Asia: 77,
55+
Africa: 21,
56+
Europe: 12,
57+
NorthAmerica: 3,
58+
SouthAmerica: 10,
59+
Oceania: 2
60+
}),
61+
new ContinentsBirthRateItem(
62+
{
63+
Year: `1990`,
64+
Asia: 87,
65+
Africa: 24,
66+
Europe: 9,
67+
NorthAmerica: 3,
68+
SouthAmerica: 10,
69+
Oceania: 1
70+
}),
71+
new ContinentsBirthRateItem(
72+
{
73+
Year: `2000`,
74+
Asia: 79,
75+
Africa: 28,
76+
Europe: 8,
77+
NorthAmerica: 4,
78+
SouthAmerica: 9,
79+
Oceania: 3
80+
}),
81+
new ContinentsBirthRateItem(
82+
{
83+
Year: `2010`,
84+
Asia: 78,
85+
Africa: 35,
86+
Europe: 10,
87+
NorthAmerica: 4,
88+
SouthAmerica: 8,
89+
Oceania: 2
90+
}),
91+
new ContinentsBirthRateItem(
92+
{
93+
Year: `2020`,
94+
Asia: 75,
95+
Africa: 43,
96+
Europe: 7,
97+
NorthAmerica: 4,
98+
SouthAmerica: 7,
99+
Oceania: 4
100+
}),
101+
];
102+
super(...(newItems.slice(0, items)));
103+
}
104+
}
105+
}

0 commit comments

Comments
 (0)