# 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<br />
**defectItemPath** `String`: check item path holding the defect/defective count<br />
**startDate** `DateTime`<br />
**endDate** `DateTime`<br />

---
### Returns
**data** `pyDataset` columns chkShtEventId, takenDate, defectCount, sampleSize<br />

---
### Example
```python
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)
```
