Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line chart: Custom domain doesn't use entire x-axis #708

Closed
1 of 5 tasks
sstone2423 opened this issue Jul 16, 2020 · 1 comment · Fixed by #715 or carbon-design-system/carbon-addons-iot-react#1430
Closed
1 of 5 tasks
Assignees

Comments

@sstone2423
Copy link

sstone2423 commented Jul 16, 2020

I am submitting a...

  • Feature request
  • Design defect
  • Source code defect
  • Demo/documentation defect
  • Other

charts version: v0.32.11

Issue description

When using the custom domain option on line time-based graphs, the whole x-axis is not used. There's a small blank gap on both sides of the graph.

Steps to produce the issue

  1. Go to https://carbon-design-system.github.io/carbon-charts/react/?path=/story/line--line-time-series-with-customized-domain
  2. Change the domain to
"domain": [
        "2019-01-05T06:00:00.000Z",
        "2019-01-14T06:00:00.000Z"
      ],
  1. See the gap on both sides

Current behavior

Line graph has blank gap on both sides of the x-axis

Expected behavior

Line graph uses the entire x-axis

Screenshot or recording

These screenshots are from the same chart with the same data

Screen Shot 2020-07-16 at 9 04 15 AM

Screen Shot 2020-07-16 at 9 04 08 AM

@theiliad
Copy link
Member

addSpaceOnEdges just needs to be overlooked when custom domain is passed in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants