1
1
< SegmentedBar [items] ="barButtons "
2
- (selectedIndexChange) ="onSelectedIndexChange($event) "
3
- backgroundColor ="#D3D3D3 "> </ SegmentedBar >
2
+ (selectedIndexChange) ="onSegmentedBarSelectionChange($event) "> </ SegmentedBar >
4
3
5
- < PullToRefresh class ="main-container "
6
- (refresh) ="pullToRefresh($event) ">
4
+ < PullToRefresh class ="main-container " (refresh) ="pullToRefresh($event) ">
7
5
< StackLayout padding ="30 ">
8
- < StackLayout visibility ="{{ barButtonsSelectedIndex === 0 ? 'visible' : 'collapsed' }} ">
9
- < RadCartesianChart allowAnimation ="true " seriesSelectionMode ="none ">
10
- < CategoricalAxis tkCartesianHorizontalAxis > </ CategoricalAxis >
11
- < LinearAxis tkCartesianVerticalAxis > </ LinearAxis >
12
- < BarSeries tkCartesianSeries
13
- showLabels ="true "
14
- seriesName ="inbound "
15
- [items] ="cartesianProvider "
16
- categoryProperty ="changesMonth "
17
- valueProperty ="quantity "> </ BarSeries >
18
- < Palette tkCartesianPalette
19
- seriesName ="inbound ">
20
- < PaletteEntry tkCartesianPaletteEntry
21
- fillColor ="#1da125 "
22
- strokeColor ="Transparent "> </ PaletteEntry >
23
- </ Palette >
24
- </ RadCartesianChart >
25
- </ StackLayout >
26
- < StackLayout visibility ="{{ barButtonsSelectedIndex === 1 ? 'visible' : 'collapsed' }} ">
27
- < RadPieChart allowAnimation ="true ">
28
- < PieSeries tkPieSeries
29
- selectionMode ="DataPoint "
30
- expandRadius ="0.8 "
31
- outerRadiusFactor ="0.9 "
32
- [items] ="pieProvider "
33
- valueProperty ="quantity "
34
- legendLabel ="type "> </ PieSeries >
35
- < RadLegendView tkPieLegend
36
- position ="Right "
37
- title ="Типи Витрат (грн) "
38
- offsetOrigin ="TopRight "
39
- width ="110 "
40
- enableSelection ="true "> </ RadLegendView >
41
- </ RadPieChart >
42
- </ StackLayout >
6
+ < RadCartesianChart visibility ="{{ barButtonsSelectedIndex === 0 ? 'visible' : 'collapsed' }} "
7
+ allowAnimation ="true " seriesSelectionMode ="none ">
8
+ < CategoricalAxis tkCartesianHorizontalAxis > </ CategoricalAxis >
9
+ < LinearAxis tkCartesianVerticalAxis > </ LinearAxis >
10
+ < BarSeries tkCartesianSeries showLabels ="true " seriesName ="inbound "
11
+ [items] ="cartesianProvider " categoryProperty ="changesMonth " valueProperty ="quantity "> </ BarSeries >
12
+ < Palette tkCartesianPalette seriesName ="inbound ">
13
+ < PaletteEntry tkCartesianPaletteEntry fillColor ="#1da125 " strokeColor ="Transparent "> </ PaletteEntry >
14
+ </ Palette >
15
+ </ RadCartesianChart >
16
+
17
+ < RadPieChart visibility ="{{ barButtonsSelectedIndex === 1 ? 'visible' : 'collapsed' }} "
18
+ allowAnimation ="true ">
19
+ < PieSeries tkPieSeries selectionMode ="DataPoint " expandRadius ="0.8 "
20
+ outerRadiusFactor ="0.9 " [items] ="pieProvider " valueProperty ="quantity "
21
+ legendLabel ="type "> </ PieSeries >
22
+ < RadLegendView tkPieLegend position ="Right " title ="Типи Витрат (грн) "
23
+ offsetOrigin ="TopRight " width ="110 " enableSelection ="true "> </ RadLegendView >
24
+ </ RadPieChart >
43
25
</ StackLayout >
44
26
</ PullToRefresh >
0 commit comments