Klaus Heywinkel
Klaus Heywinkel

Reputation: 509

BarChart can be moved/dragged

I noticed that the bars of a BarChart in an CodenameOne-App can be moved/dragged. This is not useful in my case because the BarChart is contained in an Tab-Element where the tabs can be changed with swiping. Often the bars are moved instead of changing the tab selection.

Do you have any idea how to prevent the bars from being moved? enter image description here

Upvotes: 1

Views: 43

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

Use the ChartComponent methods setZoomEnabled(false) and setPanEnabled(false);

Upvotes: 0

Related Questions