Resolved Issue #1695: Sample values in Chart activity are not initialized #1696
+21
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolved: Sample values in Chart activity are not initialized #1695
Note: Only changes are done in onJournalNewInstance() and localized() of file in activities/Chart.activity/js/activity.js
I sincerely apologize for any indentation errors in activity.js. Despite my best efforts, I was unable to resolve them. As I am new to Open Source Contribution, I appreciate your understanding and am committed to improving in this area moving forward. Thank you for your consideration.
Summary of Issue: In Charts section of Desktop Sugarizer, incorrect labels such as 'EgLabel6' were showing, instead of labels of Sports names (e.g. Basketball, Tennis, Cricket, etc.)
Explanation of my approach:
After reviewing the ChartView.js file, it is observed that the chart labels are derived directly from the tabular data without being processed through the translation system. This behavior is identified within the computed section of the code.
labels() { return this.tabularData.map((data) => data.x || ""); },
This implies the necessity to identify where tabularData is being set. Given that this is a Vue component that receives tabularData as a prop, it is crucial to examine either: