Skip to content

Overlapping Y-axis labels #5156

Closed
Closed

Description

@boriskogan81

I have this Y-axis object:

{
	id: 'events',
	type: 'category',
	labels: this.state.eventLabelArray),
	scaleLabel: {
		display: true,
		labelString: 'Phenology'
	},
	ticks: {
		autoSkip: true
	}
}

Despite autoSkip being declared as "true," it's not working-each label is rendered, none are skipped:

image

If I de-duplicate the labels, the data is no longer mapped in the tooltip:

{
	id: 'events',
	type: 'category',
	labels: Array.from([...new Set(this.state.eventLabelArray)]),
	scaleLabel: {
		display: true,
		labelString: 'Phenology'
	},
	ticks: {
		autoSkip: true
	}
}

image

Activity

  1. etimberg commented on Jan 18, 2018

    @etimberg
    Member

    I believe the issue here is that the label auto skipper is not implemented for vertical axes. I think another ticket already covers this but I can't find it

  2. ximex commented on Feb 18, 2019

    @ximex

    i also got this issue if i set a custom min/max value in the ticks object and the min/max value is only a little bit above/under the auto labeled values

  3. benmccann commented on Feb 18, 2019

    @benmccann
    Contributor

    I'm pretty sure the auto skipper is implemented for vertical axes:

    var isHorizontal = me.isHorizontal();
    . But it sounds like maybe there's a bug where it's not working correctly

  4. kurkle commented on Feb 18, 2019

    @kurkle
    Member

    auto skipper is enabled for vertical in master only (PR #5922), so probably fixed.

  5. ximex commented on Feb 18, 2019

    @ximex

    is there a date for the next release?

  6. benmccann commented on Feb 18, 2019

    @benmccann
    Contributor

    TBD. I think we'd like to get a number of pending PRs merged first

  7. kurkle commented on Nov 15, 2019

    @kurkle
    Member

    Was this resolved?

  8. etimberg commented on Jan 25, 2020

    @etimberg
    Member

    Going to call this resolved since 2.9 shipped with these changes

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions