本文介绍了如何在C#中直接创建范围条形图(使用System.Windows.Forms.DataVisualization.Charting.Chart)。通过手动键入数据点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直接在C#中创建范围条形图(使用System.Windows.Forms.DataVisualization.Charting.Chart)。通过手动键入数据点,尝试生成如下的类似输出(在纸上和在C#中)。还添加以下数据:

1.数据点(蓝色),X值= 3,Y值= 5,12,X值= 4,Y值8,21,

2.数据点(绿色),X值= 3,Y值= +4,蓝色数据点末尾,值X = 3; X值= 4,Y值= +6在蓝色数据点的末尾,X值= 4



绿色数据点应始终触及蓝色数据的末尾最右边的点,但不能在任何蓝色数据点上重叠

Create range bar graph directly in C# (using System.Windows.Forms.DataVisualization.Charting.Chart) . by manual key-in datapoints, try to generate a similar output as below (in paper and in C#). Add the following data also:
1. data point(blue) with X value = 3, Y value = 5,12, X value = 4, Y value 8,21,
2. data point(green) with X value = 3, Y value = +4 at the end of the blue data point with value X =3; X value = 4, Y value = +6 at the end of the blue data point with X value = 4

green data points should always touch the end of blue data points at the right most but cannot overlap on any blue data points

推荐答案

这篇关于如何在C#中直接创建范围条形图(使用System.Windows.Forms.DataVisualization.Charting.Chart)。通过手动键入数据点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 02:26