Axis.setTitle((AxisTitle) null) can't remove the title

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 7.2.2.0
    • Affects Version/s: 7.2.1.2
    • None

      Steps to Reproduce

      <zk>
          <charts id="chart" />
          <zscript>
          chart.getYAxis().setTitle((AxisTitle) null);
          </zscript>
      </zk>
      

      Current Result

      The title of the Y-axis is still there.

      Expected Result

      The title of the Y-axis is hidden.

      Debug Information

      Method setTitle will compare null with the default value (null).
      And the value won't be applied if not changed.

      Workaround

      call Axis.setTitle((String) null)

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h