0

Zk Chart setDraggableY(true) minor issue.

asked 2020-08-27 00:18:24 +0800

bztom35 gravatar image bztom35
103 4

updated 2020-08-31 13:01:16 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

I have this checkbox that control when to allow user to drag on a particular time series.

    @Listen("onCheck = #EnableDragOnSeries2")
    public void processingDragRequest(Event event) {

                 if (EnableDragOnSeries2.isChecked()) {
                    System.out.println("Interpolate box checked.");
                    chart.getSeries(2).getDragDrop().setDraggableY(true);
                   }else {
                   System.out.println("Interpolate box unchecked.");
                   chart.getSeries(2).getDragDrop().setDraggableY(false);
                   //chart.invalidate();

                   }
         }

Once the draggableY() method is set to true, it is always enabled even if I unchecked the checkbox. The only way to turn it off is by calling chart.invalidate().

Is this the default behavior of this draggableY() method?

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-11-09 09:41:59 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

The bug was fixed, please try the version 7.2.1.2-FL-20201106-Eval

link publish delete flag offensive edit
0

answered 2020-08-31 14:46:26 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2020-08-31 14:46:44 +0800

I have created a bug https://tracker.zkoss.org/browse/ZKCHARTS-108 for your case. Besides, the workaround is what you did: chart.invalidate();

Thanks for reporting such a bug. :)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2020-08-27 00:18:24 +0800

Seen: 11 times

Last updated: Nov 09 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More