fix: CSAT chart showing incorrect data (#7152)
* fix: computation of data for csat chart * fix: make horizontal chart reactive
This commit is contained in:
@@ -60,9 +60,9 @@ export default {
|
||||
chartData() {
|
||||
return {
|
||||
labels: ['Rating'],
|
||||
datasets: CSAT_RATINGS.map((rating, index) => ({
|
||||
datasets: CSAT_RATINGS.map(rating => ({
|
||||
label: rating.emoji,
|
||||
data: [this.ratingPercentage[index + 1]],
|
||||
data: [this.ratingPercentage[rating.value]],
|
||||
backgroundColor: rating.color,
|
||||
})),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user