Profile Picture

Removing background grid and/or top & bottom white space from sideways, stacked, single bar chart

Posted By Eric Daugherty 13 Years Ago

Removing background grid and/or top & bottom white space from...

Author
Message
Eric Daugherty
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 1, Visits: 1

I have created a sideways, stacked, single bar chart. From left to right the bar fills the complete screen but from top to bottom, there is still white space and grid lines. How can I get the chart to fill from top to bottom as well?

Thanks

Nevron.Chart.WinForm.NChartControl nChartControlx= new NChartControl();

nChartControlx.Margin = new System.Windows.Forms.Padding(0);

nChartControlx.Name = "nChartControlx";

nChartControlx.Size = new System.Drawing.Size(250, 75);

nChartControlx.TabIndex = 0;

//set some properties

nChartControlx.BackgroundStyle.FrameStyle.Visible = false;

//Add a chart control

NChart nChartx;

nChartx = nChartControlx.Charts[0];

//set some properties

nChartx.Height = nChartControlx.Height;

nChartx.Width = nChartControlx.Width;

nChartControlx.Legends.Clear();

nChartx.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft);

nChartx.Axis(0).Visible = false;

nChartx.Axis(1).Visible = false;

nChartx.Axis(2).Visible = false;

nChartx.Axis(3).Visible = false;

nChartx.Dock = DockStyle.Fill;

//Check the parameters

NBarSeries CAbar;

CAbar = (NBarSeries)nChartx.Series.Add(SeriesType.Bar);

CAbar.Name = "CurrentAssets";

CAbar.MultiBarMode = MultiBarMode.Series;

CAbar.DataLabelStyle.Visible = false;

CAbar.FillStyle = new NColorFillStyle(Color.SeaGreen);

CAbar.Values.Insert(0, 60);

NBarSeries EIbar;

EIbar = (NBarSeries)nChartx.Series.Add(SeriesType.Bar);

EIbar.Name = "ExistingInsurance";

EIbar.MultiBarMode = MultiBarMode.StackedPercent;

EIbar.DataLabelStyle.Visible = false;

EIbar.FillStyle = new NColorFillStyle(Color.Purple);

EIbar.Values.Insert(0, 25);

NBarSeries SFbar;

SFbar = (NBarSeries)nChartx.Series.Add(SeriesType.Bar);

SFbar.Name = "ShortFall";

SFbar.MultiBarMode = MultiBarMode.StackedPercent;

SFbar.DataLabelStyle.Visible = false;

SFbar.FillStyle = new NColorFillStyle(Color.Blue);

SFbar.Values.Insert(0, 15);

 






Similar Topics


Reading This Topic