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

Cannot specify point color in bubble chart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.2.1.2
    • None
    • None

      Steps to Reproduce

      Run below zul file

       

      <window>
        <charts id="chart" type="bubble"/>
        <zscript><![CDATA[
          import org.zkoss.chart.Charts;
          import org.zkoss.chart.Point;
          import org.zkoss.chart.Series;
          final Series series = new Series();
          final Point point = new Point(0, 1, 2);
          point.setColor("#123456");
          series.addPoint(point);
          chart.addSeries(series);
        ]]></zscript>
      </window>

      Current Result

      No point was shown.

      Expected Result

      Should show a blue bubble

      Debug Information

      {{The point would be converted to 

      {"x":0,"low":1,"high":2,"color":"#123456"}

      }}
      after color was specified. It should be

      {"x":0,"y":1,"z":2,"color":"#123456"}

       

            rudyhuang rudyhuang
            RaymondChao RaymondChao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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