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

Chart overrides default highcharts methods, doesn't match current API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 11.2.0.0
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. Load a pie chart: https://www.zkoss.org/zkchartsdemo/pie_basic
      2. Click on a slice
      3. While the animation is playing, click on another slice

      Current Result

      both slices (fat, water) stay highlighted

      Expected Result

      try https://www.highcharts.com/docs/chart-and-series-types/pie-chart
      only the selected slice is highlighted (default behavior on non-zk highcharts of the same version)

      Debug Information

      In Charts.js, in the static hidden block

      H.wrap(H.Point.prototype, 'select', function (select, selected, accumulate, fromServer) {
      

      This overrides the default Highcharts.Point.prototype.select function.
      Current override version is based on an older highcharts version, which is no longer matching the current highcharts version of this function.

      Workaround

            Unassigned Unassigned
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: