Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      ZKCharts 3.0.0
      Internet Explorer 11

      Description

      Hi,

      I add an onCLick event on a ZKcharts Pie, all works fine on Firefox and Chrome, the event is catched and action done, but not on Internet Explorer 11

      You can find below the source I used :
      In my .zul file :

      <?xml version="1.0" encoding="UTF-8"?>
      <window apply="org.zkoss.bind.BindComposer" 
          viewModel="@id('vm') @init('nc.noumea.mairie.appock.viewmodel.AcceuilServiceViewModel')" 
          border="none" hflex="1" vflex="1" contentStyle="overflow:auto">
                          <charts id="charts" 
                              model="@bind(vm.getCharts(charts))" title="" 
                              type="pie" onClick="@command('ouvreOnglet',chart=charts)"/>
      </window>
      

      Then in my viewModel :

      public class AcceuilServiceViewModel{
      public PieModel getCharts(@BindingParam(value = "") Charts mychart) throws Exception {
              mychart.getSeries().remove();
      
              PiePlotOptions plotOptions = mychart.getPlotOptions().getPie();
              plotOptions.setAllowPointSelect(true);
              plotOptions.setCursor("pointer");
      
              // on ajoute les différentes parties du chart
              PieModel model = new DefaultPieModel();
      
              List<String> listOldEating = new ArrayList<>();
              listOldEating.add("apple");
              listOldEating.add("steack");
              listOldEating.add("banana");
      
              List<String> listNewEating = new ArrayList<>();
              listNewEating.add("pizza");
              listNewEating.add("cheesburger");
      
              Map<String, List<String>> result = new TreeMap<>();
              result.put("new food", listNewEating);
              result.put("old food", listOldEating);
      
              Series series = mychart.getSeries();
              for (String etat : result.keySet()) {
                  Point p = new Point(etat, result.get(etat).size(), "" + etat);
                  series.addPoint(p);
              }
              return model;
      
          }
      
          @Command("ouvreOnglet")
          public void ouvreOnglet(@BindingParam(value = "chart") Charts mychart) {
              for (Point s : mychart.getSeries().getData()) {
                  if (s.isSelected()) {
                      // on recup la valeur selectionnée
                      String etat = s.getDrilldown();
                      Messagebox.show(etat);
                  }
              }
          }
      }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            rudyhuang rudyhuang
            Reporter:
            mbarre mbarre
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: