File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed
samples/ChartSamples/Pages Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 12
12
</select >
13
13
</div >
14
14
15
- <ApexChart TItem =" Order" Title =" Orders Net Value By Type" OnDataPointSelection =" DataPointSelected" ChartType =" @pieChartType" >
15
+ <ApexChart TItem =" Order" Title =" Orders Net Value By Type"
16
+ OnDataPointSelection =" DataPointSelected"
17
+ ChartType =" @pieChartType" >
16
18
<ApexSeries TItem =" Order"
17
19
Items =" Orders"
18
20
Name =" Order Value"
19
21
XValue =" @(e => e.OrderType)"
20
22
YAggregate =" @(e => e.Sum(e => e.NetValue))"
21
23
ShowDataLabels =" true" />
22
24
</ApexChart >
25
+
26
+
23
27
</div >
24
28
29
+
30
+
25
31
<div class =" col-md-12 col-lg-6" >
26
32
<div >
27
33
X-Y Charts
36
42
37
43
38
44
</div >
39
- <ApexChart TItem =" Order" Title =" Order Net Value" ChartType =" @xyChartType" OnDataPointSelection =" DataPointSelected" >
45
+ <ApexChart TItem =" Order"
46
+ Title =" Order Net Value"
47
+ ChartType =" @xyChartType"
48
+ OnDataPointSelection =" DataPointSelected" >
40
49
41
50
<ApexSeries TItem =" Order"
42
51
Items =" Orders"
59
68
60
69
@if (selectedData != null )
61
70
{
62
- <div class =" card" >
71
+ <div class =" card" style = " background-color : whitesmoke " >
63
72
<div class =" card-body" >
64
73
<h5 class =" card-title" >Selected Data </h5 >
65
-
74
+
66
75
<dl class =" row" >
67
- <dt class =" col-sm-3 " >Series : </dt >
68
- <dd class =" col-sm-9 " >@selectedData.Series.Name </dd >
76
+ <dt class =" col-sm-2 " >Series : </dt >
77
+ <dd class =" col-sm-10 " >@selectedData.Series.Name </dd >
69
78
70
- <dt class =" col-sm-3 " >X - Value : </dt >
71
- <dd class =" col-sm-9 " >
79
+ <dt class =" col-sm-2 " >X - Value : </dt >
80
+ <dd class =" col-sm-10 " >
72
81
@selectedData.DataPoint.X
73
82
</dd >
74
83
</dl >
Original file line number Diff line number Diff line change @@ -127,15 +127,15 @@ private void UpdateDataForNoAxisCharts()
127
127
128
128
public void FixLineDataSelection ( )
129
129
{
130
- if ( Options . Chart . Type == ChartType . Line && OnDataPointSelection . HasDelegate )
130
+ if ( ( Options . Chart . Type == ChartType . Line || Options . Chart . Type == ChartType . Area ) && OnDataPointSelection . HasDelegate )
131
131
{
132
132
133
133
if ( Options . Tooltip == null ) { Options . Tooltip = new ApexChartsApexOptionsTooltip ( ) ; }
134
134
if ( Options . Markers == null ) { Options . Markers = new Markers ( ) ; }
135
135
136
136
if ( Options . Markers . Size == null || Options . Markers . Size <= 0 )
137
137
{
138
- Options . Markers . Size = 4 ;
138
+ Options . Markers . Size = 5 ;
139
139
}
140
140
141
141
Options . Tooltip . Intersect = true ;
You can’t perform that action at this time.
0 commit comments