MSChart: How to group RangeBar data with text labels instead of indexes?
问题 I'm looking to plot data on a RangeBar chart area (System.Windows.Forms.DataVisualization.Charting) and I'm having issues grouping the data when I have text values for the labels on the vertical axis. Here's the pertinent code: var connectedTimeRangeSeries = theChart.Series.Add("ConnectedTimeRangeSeries"); var connectedTimeRangesChartArea = theChart.ChartAreas["PerItemConnectedChartArea"]; connectedTimeRangeSeries.ChartArea = connectedTimeRangesChartArea.Name; connectedTimeRangeSeries