Hi! I have a little problem i don’t know how to stack a list of DataPoints in the same column.
Here is an example of what i want to do…
List<DataPoints> Target = new List<DataPoints>();
List<DataPoints> Real = new List<DataPoints>();
List<DataPoints> Projects = new List<DataPoints>();
Target.Add(new DataPoints("Target", 500));
Real.Add(new DataPoints("Real", 300));
Projects.Add(new DataPoints("Project1", 50));
Projects.Add(new DataPoints("Project2", 50));
Projects.Add(new DataPoints("Project3", 50));
Projects.Add(new DataPoints("Project4", 50));
Projects.Add(new DataPoints("Project5", 100));
ViewBag.Target = JsonConvert.SerializeObject(Target);
ViewBag.Real = JsonConvert.SerializeObject(Real);
ViewBag.Projects = JsonConvert.SerializeObject(Projects);
And i want to get something like this
600|
|
500| +-----+
| | |
400| | |
| | |
300| | | +-----+ +-----+
| | | | | | |
200| | | | | +-----+
| | | | | +-----+
100| | | | | +-----+
| | | | | +-----+
0|______|_____|_____|_____|_____+-----+_
Target Real Projects
I hope you can understannd my problem
-
This topic was modified 5 years, 2 months ago by 9Dan7. Reason: Wrong title