Revision history [back]

click to hide/show revision 1
initial version

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

bztom35 gravatar image bztom35

Zk Chart setDraggableY(true) minor issue.

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?

Zk Chart setDraggableY(true) minor issue.

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

 @Listen("onCheck = #EnableDragOnSeries2")

#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?

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