Uploaded image for project: 'ZK Charts'
  1. ZK Charts
  2. ZKCHARTS-56

model removeValue and addValue cause desynchronization with client

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 3.0.2
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      Run attached example (zul + java)
      Click on the button

      Current Result

      Values are removed but not added

      Expected Result

      Values should be removed and added

      Debug Info

      Root Cause

      Point DESTROY event was changed into Series DESTROY event, which is wrong (should be REMOVED).

      Workaround

      Extend charts such as:

      public class ChartsWorkaround extends Charts {
      
      	@Override
      	public void onSyncModel() {
      		super.onSyncModel();
      		invalidate();
      	}
      	
      }
      

      in zul:

      <charts id="chart" type="spline" model="@bind(vm.model)" use="org.zkoss.support.ChartsWorkaround" />
      
      1. ChartsBugVM.java
        0.8 kB
        MDuchemin
      2. spline3.zul
        0.3 kB
        MDuchemin

        Issue Links

          Activity

          Hide
          rudyhuang rudyhuang added a comment -

          Fixed since 2018/12/07

          Show
          rudyhuang rudyhuang added a comment - Fixed since 2018/12/07

            People

            • Assignee:
              rudyhuang rudyhuang
              Reporter:
              MDuchemin MDuchemin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h