Skip to content

fix(scale): intervalTick should between extent. close 16888#16963

Closed
MeetzhDing wants to merge 1 commit into
apache:masterfrom
MeetzhDing:fix-16888
Closed

fix(scale): intervalTick should between extent. close 16888#16963
MeetzhDing wants to merge 1 commit into
apache:masterfrom
MeetzhDing:fix-16888

Conversation

@MeetzhDing
Copy link
Copy Markdown
Contributor

@MeetzhDing MeetzhDing commented Apr 28, 2022

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

filter intervalTick by tick.value > extent[0] && tick.value < extent[1] && !tick.notAdd;

Fixed issues

#16888

xAxis[type=time], set showMinLabel=false not work

Details

Before: What was the problem?

@echarts-bot
Copy link
Copy Markdown

echarts-bot Bot commented Apr 28, 2022

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

@pissang
Copy link
Copy Markdown
Contributor

pissang commented Apr 29, 2022

Thanks! Could you add a test case for this?

@MeetzhDing
Copy link
Copy Markdown
Contributor Author

Thanks! Could you add a test case for this?

done.

image

Comment thread src/scale/Time.ts

const levelsTicksInExtent = filter(map(levelsTicks, levelTicks => {
return filter(levelTicks, tick => tick.value >= extent[0] && tick.value <= extent[1] && !tick.notAdd);
return filter(levelTicks, tick => tick.value > extent[0] && tick.value < extent[1] && !tick.notAdd);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not the correct place to fix the problem. For example, the min/max labels are always hidden after this changing. You need to make sure the test cases in timeScale-formatter.html still works the same as before changing.

Copy link
Copy Markdown
Contributor Author

@MeetzhDing MeetzhDing Aug 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not the correct place to fix the problem. For example, the min/max labels are always hidden after this changing. You need to make sure the test cases in timeScale-formatter.html still works the same as before changing.

min/max labels work normal after this changing, could you check it again? Or give me a specific example ?
@Ovilia

Comment thread test/axisLabel.html Outdated
backgroundColor: '#eee',
title: {
text: 'axisLable.formatter: {value} should be correct'
text: 'axisLabel.formatter: {value} should be correct'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related test cases should be put into timeScale-formatter.html

Copy link
Copy Markdown
Contributor Author

@MeetzhDing MeetzhDing Aug 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related test case has been move into timeScale-formaatter.html
@Ovilia

@MeetzhDing
Copy link
Copy Markdown
Contributor Author

min/max labels work normal after this changing, could you check it again? Or give me a specific example ?
@Ovilia

1 similar comment
@MeetzhDing
Copy link
Copy Markdown
Contributor Author

min/max labels work normal after this changing, could you check it again? Or give me a specific example ?
@Ovilia

@leoclo
Copy link
Copy Markdown

leoclo commented Mar 13, 2024

+1 Any news if
axisLabel.showMinLabel
and
axisLabel.showMaxLabel
will start working with type time axis ?

@github-actions
Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.

@github-actions github-actions Bot added the stale Inactive for a long time. Will be closed in 7 days. label Mar 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR has been automatically closed because it has not had recent activity. Sorry for that and we are looking forward to your next contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS stale Inactive for a long time. Will be closed in 7 days.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants