File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Create-box-and-whisker-chart/.NET/Create-box-and-whisker-chart
Create-funnel-chart/.NET/Create-funnel-chart
Create-histogram-chart/.NET/Create-histogram-chart
Create-pareto-chart/.NET/Create-pareto-chart Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ static void Main(string[] args)
16
16
17
17
WChart chart = paragraph . AppendChart ( 500f , 300f ) ;
18
18
chart . ChartType = OfficeChartType . BoxAndWhisker ;
19
- chart . ChartTitle = "Box and whisker chart " ;
19
+ chart . ChartTitle = "Academic Score - Box & Whisker Chart " ;
20
20
21
21
// Set headers
22
22
chart . ChartData . SetValue ( 1 , 1 , "Course" ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ static void Main(string[] args)
23
23
chart . ChartType = OfficeChartType . Funnel ;
24
24
25
25
// Set chart title.
26
- chart . ChartTitle = "Sales Funnel" ;
26
+ chart . ChartTitle = "Sales Stages - Funnel Chart " ;
27
27
28
28
// Set headers.
29
29
chart . ChartData . SetValue ( 1 , 1 , "Stage" ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ static void Main(string[] args)
20
20
chart . ChartType = OfficeChartType . Histogram ;
21
21
22
22
// Set chart title
23
- chart . ChartTitle = "Test Scores (in Histogram) " ;
23
+ chart . ChartTitle = "Test Scores - Histogram Chart " ;
24
24
chart . ChartTitleArea . FontName = "Calibri" ;
25
25
chart . ChartTitleArea . Size = 14 ;
26
26
@@ -44,6 +44,10 @@ static void Main(string[] args)
44
44
chart . HasLegend = true ;
45
45
chart . Legend . Position = OfficeLegendPosition . Bottom ;
46
46
47
+ //Set x-axis and y-axis title
48
+ chart . PrimaryCategoryAxis . Title = "Score Range" ;
49
+ chart . PrimaryValueAxis . Title = "Number Of Candidates" ;
50
+
47
51
// Create a file stream.
48
52
using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Output.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
49
53
{
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ static void Main(string[] args)
41
41
chart . ChartData . SetValue ( 6 , 1 , "Gas" ) ;
42
42
chart . ChartData . SetValue ( 6 , 2 , 500 ) ;
43
43
44
- chart . ChartData . SetValue ( 7 , 1 , "Cable " ) ;
44
+ chart . ChartData . SetValue ( 7 , 1 , "House loan " ) ;
45
45
chart . ChartData . SetValue ( 7 , 2 , 300 ) ;
46
46
47
- chart . ChartData . SetValue ( 8 , 1 , "Mobile " ) ;
47
+ chart . ChartData . SetValue ( 8 , 1 , "Wifi bill " ) ;
48
48
chart . ChartData . SetValue ( 8 , 2 , 200 ) ;
49
49
50
50
// Define the data range for the chart.
You can’t perform that action at this time.
0 commit comments