79835632

Date: 2025-12-02 08:24:11
Score: 0.5
Natty:
Report link

You should've bind chartOptions.dataLabels and chartOptions.colors to your <apx-chart>.

file src/app/app.components.html:

<div id="chart">
  <apx-chart
    [series]="chartOptions.series"
    [chart]="chartOptions.chart"
    [labels]="chartOptions.labels"
    [responsive]="chartOptions.responsive"
    [dataLabels]="chartOptions.dataLabels"
    [colors]="chartOptions.colors"
  ></apx-chart>
</div>

And you have a typo on your colors list.
after changing #000FF00 to #00FF00 it would look like this.

chart image with data labels hidden and colors changed

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CDnX