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

Y-axis changes to hoverformat value when both tickformat and hoverformat are set #7242

Open
jrhessels opened this issue Oct 21, 2024 · 0 comments
Labels
bug something broken P3 backlog

Comments

@jrhessels
Copy link

When using Plotly.js, if both tickformat and hoverformat are specified for the y-axis, the y-axis values unexpectedly change to the hoverformat values instead of displaying the tickformat values.

example code:

    yaxis2: {
        title: { text: 'Strip Widht [mm]' }, // Y-axis title
        titlefont: { color: '#004768', size: 8, standoff: 0.1 },
        tickfont: { color: '#004768', size: 8 },
        domain: [0.15, 0.80],
        linecolor: '#004768',
        // range based on strip width setpoint + tollerance + 10 mm extra
        range: [(tagValues[4] - tagValues[3] - 5), (tagValues[4] + tagValues[3] + 5)],
        tickvals: [(tagValues[4] - tagValues[3] - 3),(tagValues[4] - tagValues[3]), tagValues[4], (tagValues[4] + tagValues[3]), (tagValues[4] + tagValues[3] + 3)],
        hoverformat: '.2f',
        tickformat: '.0f',
        zeroline: false
    },
@gvwilson gvwilson added P3 backlog bug something broken labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

2 participants