| ||
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 > GetIntegers Method GetIntegers MethodGet one or more Integer columns from a Selection, with optional missing value filler. Examplesp.Reset(240,160); sp.SetMargins(24,18,24,4); mytable = new DataTable(); // Get some real data here!; myselection = mytable.Select("year>2006 AND symb='BP'"); DbUtil.GetIntegers(myselection,"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 integers, with any missing data (DBNull values) replaced with zero. You can also retrieve multiple columns in a single call which is ideal as a way of plotting several parallel series. Floating point data is rounded to the nearest integer. See also ... |