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)
1616
1717 WChart chart = paragraph . AppendChart ( 500f , 300f ) ;
1818 chart . ChartType = OfficeChartType . BoxAndWhisker ;
19- chart . ChartTitle = "Box and whisker chart " ;
19+ chart . ChartTitle = "Academic Score - Box & Whisker Chart " ;
2020
2121 // Set headers
2222 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)
2323 chart . ChartType = OfficeChartType . Funnel ;
2424
2525 // Set chart title.
26- chart . ChartTitle = "Sales Funnel" ;
26+ chart . ChartTitle = "Sales Stages - Funnel Chart " ;
2727
2828 // Set headers.
2929 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)
2020 chart . ChartType = OfficeChartType . Histogram ;
2121
2222 // Set chart title
23- chart . ChartTitle = "Test Scores (in Histogram) " ;
23+ chart . ChartTitle = "Test Scores - Histogram Chart " ;
2424 chart . ChartTitleArea . FontName = "Calibri" ;
2525 chart . ChartTitleArea . Size = 14 ;
2626
@@ -44,6 +44,10 @@ static void Main(string[] args)
4444 chart . HasLegend = true ;
4545 chart . Legend . Position = OfficeLegendPosition . Bottom ;
4646
47+ //Set x-axis and y-axis title
48+ chart . PrimaryCategoryAxis . Title = "Score Range" ;
49+ chart . PrimaryValueAxis . Title = "Number Of Candidates" ;
50+
4751 // Create a file stream.
4852 using ( FileStream outputFileStream = new FileStream ( Path . GetFullPath ( @"Output/Output.docx" ) , FileMode . Create , FileAccess . ReadWrite ) )
4953 {
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ static void Main(string[] args)
4141 chart . ChartData . SetValue ( 6 , 1 , "Gas" ) ;
4242 chart . ChartData . SetValue ( 6 , 2 , 500 ) ;
4343
44- chart . ChartData . SetValue ( 7 , 1 , "Cable " ) ;
44+ chart . ChartData . SetValue ( 7 , 1 , "House loan " ) ;
4545 chart . ChartData . SetValue ( 7 , 2 , 300 ) ;
4646
47- chart . ChartData . SetValue ( 8 , 1 , "Mobile " ) ;
47+ chart . ChartData . SetValue ( 8 , 1 , "Wifi bill " ) ;
4848 chart . ChartData . SetValue ( 8 , 2 , 200 ) ;
4949
5050 // Define the data range for the chart.
You can’t perform that action at this time.
0 commit comments