Skip to content

[Bug]: The Ruler tooltip is not on the proper date axis. #2027

@priyanka191992

Description

@priyanka191992

Relevant package(s)

  • @carbon/charts
  • @carbon/charts-svelte
  • @carbon/charts-react
  • @carbon/charts-angular
  • @carbon/charts-vue
  • Documentation website

Carbon Charts Version

1.22.8

Which bundler are you using?

Webpack

What happened and what did you expect to happen?

The ruler tooltip should come properly on the date axis

Image

Issue 6 : The Ruler tooltip is not on the proper date axis..pdf

Chart data and options (automatically formatted so no need for backticks)


option.js

export default {
  title: 'Time Series',
  axes: {
    left: {
      stacked: true,
      scaleType: 'linear',
      mapsTo: 'value',
    },
    bottom: {
      scaleType: 'time',
      mapsTo: 'date',
    },
  },
  curve: 'curveMonotoneX',
  height: '400px',
};

data.js

export default [
  {
    group: 'Dataset 1',
    date: new Date('2023-01-01'),
    value: 10000,
  },
  {
    group: 'Dataset 1',
    date: new Date('2023-01-05'),
    value: 65000,
  },
  {
    group: 'Dataset 1',
    date: new Date('2023-01-07'),
    value: 10000,
  }
];

JavaScript console or build output (if relevant)

StackBlitz repro

No response

IBM Application/Team (if relevant)

No response

What priority level would this be in your opinion?

P2 (Medium)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions