Skip to content

Heatmap Chart: Unable to Display Duplicate Y-Axis Labels #4757

@ZahidChandio

Description

@ZahidChandio

I encountered an issue where duplicate labels on the y-axis were not allowed. In the image below, the y-axis represents the days of the week. As a result, some labels, like Tuesday ('T') and Saturday ('S'), are missing. You can check the sample in the provided CodeSandbox.

image

These are the y-axis options I tried.

yaxis: {
      forceNiceScale: false,
      showAlways: true,
      show: true,
      showForNullSeries: true,
      crosshairs: {
        show: true
      },
      labels: {
        show: true,
        formatter(val, opts) {
          console.log('opts', opts);
          return val?.toString();
        }
      }
    }

I am using "^3.54.0" version of apexcharts.

Reproduction link
https://codesandbox.io/p/sandbox/apexcharts-heatmap-p6ddt7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions