Skip to content

Conversation

@MeetzhDing
Copy link
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

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
Contributor

pissang commented Apr 29, 2022

Thanks! Could you add a test case for this?

@MeetzhDing
Copy link
Contributor Author

Thanks! Could you add a test case for this?

done.

image


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
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
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

backgroundColor: '#eee',
title: {
text: 'axisLable.formatter: {value} should be correct'
text: 'axisLabel.formatter: {value} should be correct'
Copy link
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
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
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
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

leoclo commented Mar 13, 2024

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants