Skip to main content

system.kanoa.quality.analysis.getHistogramData(chkItemId, startDate, endDate, minRange, maxRange, minValue, maxValue)

Returns check item event data formatted to build a process capability chart


Parameters

chkItemId Integer: Id of check item
startDate DateTime: Start date of the range
endDate DateTime: End date of the range
minRange Integer: The lowest value in the table. Used to calculate intervals
maxRange Integer: The highest value in the table. Used to calculate intervals
minValue Integer: Ignore values less than this value. Can be set to None to return all values
maxValue Integer: Ignore values greater than this value. Can be set to None to return all values


Returns

data pyDataset
message String None if success


Example

chkItemId = 123
startDate = system.date.getDate(2023, 1, 1)
endDate = system.date.getDate(2023, 12, 31)
minRange = 10
maxRange = 100
minValue = None
maxValue = None
data, error = system.kanoa.quality.analysis.getHistogramData(chkItemId, startDate, endDate, minRange, maxRange, minValue, maxValue)