-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolved Issue #1695: Sample values in Chart activity are not initialized #1696
base: dev
Are you sure you want to change the base?
Conversation
You should change the settings in your IDE to avoid auto re-indent. |
Thank you for helping me out, please have a look at my updated code. I hope it completely resolves the issue.
|
2459551
to
170ad20
Compare
@kumar-piyush12 I feel there are some indentation done automatically by IDE in your new commit as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line 147 to 152 which you changed should be same as there is indentation change only
I manually turned 'Auto Indent' settings to 'None' in VS-code. And it still shows some spacing issues in the 'changed lines'. |
With your fix it's not longer possible to have an empty chart because of the test you've added. See below. Capture.video.du.2025-01-09.21-49-31.webmYou should not test the data length. You should ensure that a new instance has been created. |
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: