system.kanoa.quality.analysis.getAttributeChartData(masterChkShtId, defectItemPath, startDate, endDate)
Supports the p/np/c/u attribute charts. Returns one row per check-sheet event with the defect/defective count and its sample size - both come off the same row, since chkShtEventItems already carries measCount (how many units this measurement represents) per event.
Parameters
masterChkShtId Integer: Id of the masterChkSht
defectItemPath String: check item path holding the defect/defective count
startDate DateTime
endDate DateTime
Returns
data pyDataset columns chkShtEventId, takenDate, defectCount, sampleSize
Example
startDate = system.date.parse("2026-08-01 00:00:00")
endDate = system.date.parse("2026-08-03 00:00:00")
masterChkShtId = 45
defectItemPath = 'Main\Motor Amps'
data = system.kanoa.quality.analysis.getAttributeChartData(masterChkShtId, defectItemPath, startDate, endDate)