Timeline for Chart Js: How to display data values in chart js bars
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 12, 2023 at 2:38 | comment | added | ddeve |
@sagar Posting how you were able to resolve these errors would've been helpful. I'm getting similar error when adding Chart.register(ChartDataLabels)
|
|
Sep 13, 2022 at 16:39 | vote | accept | Sagar | ||
Sep 13, 2022 at 16:15 | comment | added | Sagar | Finally I was able to resolve it, thanks for the suggestion @sfdcfox | |
Sep 11, 2022 at 15:08 | comment | added | Sagar | I was able to resolve this error 'Uncaught (in promise) TypeError: d.default.register is not a function at eval', and I was able to display the chart, but still the labels are not getting displayed on the bars | |
Sep 7, 2022 at 14:35 | comment | added | sfdcfox♦ | @Sagar Interesting. I'm not sure what else to say at the moment, you'll want to try debugging. It might be a missing dependency or something. Have you tried building it from scratch? Also, have you tried just using it as an ES6 module, as demonstrated in this answer? Many libraries that are ES6 compatible work well in LWC; you just have to copy-paste the source into a JS file, then import it as normal. | |
Sep 7, 2022 at 13:19 | comment | added | Sagar | thanks for the reply, I have followed your approach, so when I try to register using 'Chart.register(ChartDataLabels)' I am getting the following error as 'Uncaught (in promise) TypeError: d.default.register is not a function at eval' | |
Sep 7, 2022 at 11:48 | history | edited | sfdcfox♦ | CC BY-SA 4.0 |
edited body
|
Sep 7, 2022 at 11:40 | history | answered | sfdcfox♦ | CC BY-SA 4.0 |