zoom problem when multiple charts displayed


In an evaluation process we try Vaadin Charts in place of Invient Charts.
When one chart is displayed zoom works as expected. However, in a component where 3 charts displayed at the same time VC zoom does not work as opposed to IC.
Although marking an area works it does nothing (no zoom happens) and it stays in marking mode. Debug window shows no problem.
After changing back to a single chart view zoom ceases to work for that too. Only starting the app can resolve it.

Any idea how to resolve it welcome!


I assume you’re talking about zooming in the charts and not zooming the browser.

Which version of Vaadin Charts are you seeing this in? Can you provide me with a reduced test case that shows the issue? I’ll gladly have the boys fix any bugs!


Hello Jonatan,

Yes, it is about chart zooming.
Now we are using 1.1.6 of Vaadin 6, and earlier attempts with 1.1.3 worked likewise.
We tried to repeat this with two charts from the samples, but that did not expose what we see. We are trying to strip down our code that does. It may take some time.

Thank you for offering bug-fix. This is a show-stopper for us in replacing Invient Charts.


Dear Jonatan and Johannes,

First of all, my apologies for mixing two forum threads and any confusion it might have caused to you all!
In order to reunite what belongs together I copy here Johannes’ conclusions written in the other thread:

"Yes, it seem to be a bug in Charts. It seem to work all right in Vaadin 7.2.

For Vaadin 6.8.15, I was able to find a workaround. It works if all window content is removed and regenerated in the button click, and not just graphlayout."

As suggested I made a bug report:

Thanks for your help.

Dear Jonatan and Johannes,

Unfortunately we still have this problem with charts, and it’s getting urgent for us to solve the problem.

I know it’s been a while since we discussed this topic, but if you be so kind to help a little more I’d be more than pleased. Only now I’ve got the time to change our charts from invient to vaadin charts. I tried Johannes’s workaround but somehow I can’t make it work.

I tried the following but still not working…

private Button.ClickListener createListener() {
return new Button.ClickListener() {
public void buttonClick(Button.ClickEvent event) {
// removeAllComponents();
// initComponents();

         //  getContent().removeAllComponents();
         //  initComponents();

[/code]What else (or how?) should I remove to achive the correct zooming?
I’m working with vaadin 6.8.13, also tried with 6.8.15. without any success.

Thanks for your help.

Dear Szilvi,

Sorry for this long delay. I finally tried my workaround again (with several varitations), and unfortunately it doesn’t seem to work :frowning:
I do not know why it seemed to work back then… I’m sorry.

Best regards, Johannes

Hello Johannes,

Szilvi being away I am to respond.
No wonder you cannot reproduce it’s a genuine bug that manifest itself in various manners. We tried hard to find quick and still acceptable workaround for our use case and barely succeeded. We plan to give a summary and sample codes for the various cases explored and add it to the bug report, just need some more time to get there.

Thanks for your efforts!