<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: FE-yhchoi</title>
    <description>The latest articles on Forem by FE-yhchoi (@feyhchoi).</description>
    <link>https://forem.com/feyhchoi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1027827%2F269d8b7e-7299-42fc-b2b0-e0cb0f6b3b4b.png</url>
      <title>Forem: FE-yhchoi</title>
      <link>https://forem.com/feyhchoi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/feyhchoi"/>
    <language>en</language>
    <item>
      <title>chart.js issue.. plz nn</title>
      <dc:creator>FE-yhchoi</dc:creator>
      <pubDate>Thu, 16 Feb 2023 05:05:52 +0000</pubDate>
      <link>https://forem.com/feyhchoi/chartjs-issue-plz-nn-3868</link>
      <guid>https://forem.com/feyhchoi/chartjs-issue-plz-nn-3868</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;formatter: function (value, context) {
              var result = value
                .toString()
                .replace(/\B(?=(\d{3})+(?!\d))/g, ",");

              var index = context.dataIndex;
              var fontWeight = index === 0 ? 700 : 500;
              return {
                value: result,
                font: {
                  weight: fontWeight,
                },
              };

              return result;
            },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Chart.js (2.9.4) + Chartjs-datalabels plugin (0.7.0) in use.&lt;br&gt;
Currently, I want to change the label font-weight value of the 0th index to bold.&lt;br&gt;
Label values are output as [object object] values due to the lower return result.&lt;/p&gt;

&lt;p&gt;Can I get some advice?&lt;/p&gt;

</description>
      <category>chart</category>
      <category>chartjs</category>
      <category>chartdatalabels</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
