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

X-Axis grid line align left #3415

Closed
truedrug opened this issue May 11, 2021 · 1 comment
Closed

X-Axis grid line align left #3415

truedrug opened this issue May 11, 2021 · 1 comment

Comments

@truedrug
Copy link

  • G2 Version: ^4.0.15

  • Platform: macos

  • Mini Showcase(like screenshots):
    image

  • CodePen Link: NA

How do I align the vertical x-axis to the left.

chart.axis("xAxis", {
      tickLine: null,
      line: null,
      grid: {
        line: {
          type: "line",
          style: {
            stroke: "#E1E1E1",
          },
        },
      },
    });

For the funnel chart

if I do alignTick: false, then the grid line goes to right, but is there a way to make it aligned to left?

Any help is appreciated. TIA

@hustcc
Copy link
Member

hustcc commented Jun 11, 2021

{
  label: {
    style: { textAlign: 'center' }
  }
}

@hustcc hustcc closed this as completed Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants