charts - MSChart C# Error Bar Graph With Dynamic Upper and Lower Bounds -
i working mschart in c#. given simulation data manufacturing time of 3 different products. need create graph looks error bar graph contains 3 points, each point contains average time value, , upper , lower bounds of error bar @ each point maximum , minimum time values of simulation. problem have found mschart, error range static; same every point on graph. need error bar graph different minimum , maximum every point. have image of graph should like, of course, not allowed post images.
i thought create workaround, inconvenient, creating 6 series in graph, 2 each point, add maximum 1 , minimum other, , hide respective lower , upper bound. trying this, however, makes graph big red x. wondering if capability not possible .net mschart. have @ third party libraries this?
the following uses system.windows.forms.datavisualization.charting libraries think have been part of .net since 4.0.
chart achart = new chart(); chartarea achartarea = new chartarea(); achart.chartareas.add(achartarea); achart.size = new system.drawing.size(100,100); series aseries = mchart.series.add("someseriesname"); aseries.charttype = seriescharttype.errorbar; aseries.points.addxy(firstxpoint, firstmiddleypoint, firstlowerybound, firstupperybound); aseries.points.addxt(secondxpoint, secondmiddleypoint, secondlowerybound, secondupperybound); achart.saveimage("outputpath/outputname.jpg", chartimageformat.jpeg);
Comments
Post a Comment