Note that there are some explanatory texts on larger screens.

plurals
  1. POc# chart control remove spaces between bars in bar chart
    primarykey
    data
    text
    <p>I have a bar chart made with the c# .net chart control that looks like the following: <img src="https://i.stack.imgur.com/3ElAi.png" alt="enter image description here"></p> <p>As you can see there is a space between each pair of red and blue bars on the chart. Is there a way to remove those spaces?</p> <p>Thanks in advance!</p> <p>EDIT:</p> <p>Here are the lines from the designer</p> <pre><code> chartArea1.Name = "ChartArea1"; this.CHRT_DPS_HPS.ChartAreas.Add(chartArea1); legend1.Name = "Legend1"; this.CHRT_DPS_HPS.Legends.Add(legend1); this.CHRT_DPS_HPS.Location = new System.Drawing.Point(3, 271); this.CHRT_DPS_HPS.Name = "CHRT_DPS_HPS"; series1.ChartArea = "ChartArea1"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bar; series1.Color = System.Drawing.Color.Red; series1.Legend = "Legend1"; series1.MarkerBorderWidth = 0; series1.Name = "DPS"; series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.String; series1.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; series2.ChartArea = "ChartArea1"; series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bar; series2.Legend = "Legend1"; series2.MarkerBorderWidth = 0; series2.Name = "HPS"; series2.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.String; series2.YValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Double; this.CHRT_DPS_HPS.Series.Add(series1); this.CHRT_DPS_HPS.Series.Add(series2); this.CHRT_DPS_HPS.Size = new System.Drawing.Size(1199, 300); this.CHRT_DPS_HPS.TabIndex = 1; this.CHRT_DPS_HPS.Text = "CHRT_DPS_HPS"; title1.Name = "Title1"; title1.Text = "DPS Chart"; this.CHRT_DPS_HPS.Titles.Add(title1); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload