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

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

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

        Activity

          People

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 1 hour
                1h