| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > DrawTriangle Method SharpPlot.DrawTriangle MethodCreate a triangle chart (relative proportions of exactly 3 series): Examplesamples = new int[,] {{3,4,4},{4,2,2},{3,4,2},{4,3,1}}; sp.SetMargins(12,6,0,0); sp.TriangleStyle = TriangleStyles.GridLines|TriangleStyles.Markers; sp.SetMarkers(Marker.Bullet); sp.XCaption = "Na"; sp.YCaption = "K"; sp.ZCaption = "Ca"; sp.DrawTriangle(samples); The short tutorial shows a few of the possibilities and some sample code. Overloads
DescriptionThis chart is typically used to profile a series of samples of the 3 key constituents of some raw material or industrial process. The data may be shown as proportions or percentages, but it will always be normalised into the range 0-1. If only 2 sets of samples are given, the third set is deduced by subtraction from 1 or 100 as appropriate. Various styles can be used to vary the appearance of the chart, but the axis range and tick spacing are pre-determined here. See also ...SharpPlot Members | TriangleStyle Property |