Skip to content

Commit c768884

Browse files
committed
Added changes
1 parent fb86f0f commit c768884

File tree

4 files changed

+9
-5
lines changed
  • Charts
    • 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

4 files changed

+9
-5
lines changed

Charts/Create-box-and-whisker-chart/.NET/Create-box-and-whisker-chart/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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");

Charts/Create-funnel-chart/.NET/Create-funnel-chart/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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");

Charts/Create-histogram-chart/.NET/Create-histogram-chart/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
{

Charts/Create-pareto-chart/.NET/Create-pareto-chart/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)