| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Methods Structures Enumerations Style examples Glossaries Active Charts VectorMath Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > DBUtil Class > GetDoubles Method GetDoubles MethodGet one or more Double columns from a Selection, with optional missing value filler. Examplesp.Reset(240,160); sp.SetMargins(24,18,24,4); filler = sp.MissingValue; mytable = new DataTable(); // Get some real data here!; myselection = mytable.Select("year>2006 AND symb='BP'"); DbUtil.GetDoubles(myselection,filler,"SharePrice"); sp.Heading = "BP"; sp.HeadingStyle = HeadingStyles.Right; sp.DrawLineGraph(BP); Overloads
DescriptionThis example retrieves a single column of data as a simple array of doubles, with any missing data (DBNull values) replaced with the current SharpPlot missing value property. You can also retrieve multiple columns in a single call which is ideal as a way of plotting several parallel series. See also ... |