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

Changing XAxis title from chart.addChartDrillupListener does nothing #583

Open
mvysny opened this issue Aug 19, 2019 · 0 comments
Open

Changing XAxis title from chart.addChartDrillupListener does nothing #583

mvysny opened this issue Aug 19, 2019 · 0 comments

Comments

@mvysny
Copy link
Member

mvysny commented Aug 19, 2019

Vaadin 8.8.6, Charts 4.2.0. The following code prints "Drillup" in the console when you drill up the charts (which means that the listener is called), but the X Axis title is not changed:

        chart.addChartDrillupListener(new ChartDrillupListener() {
            @Override
            public void onDrillup(ChartDrillupEvent event) {
                System.out.println("Drillup");
                x.setTitle("Changing title on drillup");
            }
        });

Steps to reproduce:

  1. Click a bar in charts to drill down
  2. Press the "Back to Browser brands" button.
  3. The X Axis title should have been changed to "Changing title on drillup"

Workaround is to force chart redraw in the listener, by calling chart.drawChart(), however that interrupts the drillup animation.

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

1 participant