system.kanoa.quality.analysis.getHistogramData
Description
Builds a process capability chart from the check item event data in KanoaQDS.Syntax
getHistogramData(chkItemId, startDate, endDate, minRange, maxRange, minValue, maxValue)- chkItemId - ID of the check item (int).
- startDate - Start date for the query (datetime).
- endDate - End date for the query (datetime).
- minRange - Minimum range value (int).
- maxRange - Maximum range value (int).
- minValue - Minimum value (int).
- maxValue - Maximum value (int).
- data - A dataset containing histogram data (pyDataset).
Code Example
# Usage example
chk_item_id = 123
start_date = system.date.getDate(2023, 1, 1)
end_date = system.date.getDate(2023, 12, 31)
min_range = 10
max_range = 100
min_value = 5
max_value = 150
data, error = system.kanoa.quality.analysis.getHistogramData(chkItemId=chk_item_id, startDate=start_date, endDate=end_date, minRange=min_range, maxRange=max_range, minValue=min_value, maxValue=max_value)