Uploaded image for project: 'Community Dashboard Framework'
  1. Community Dashboard Framework
  2. CDF-917

CCC - Axis tick label overflows - fails on fixed categorical bands layout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Unknown
    • Resolution: Fixed
    • Affects Version/s: 16.01.22
    • Fix Version/s: 7.0.0 GA, 6.1-16.08.18, 16.08.18
    • Component/s: None
    • Labels:
      None
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      When a cartesian chart specifies for one of its discrete cartesian axis a fixed categorical bands layout, through axis options like BandSize and BandSpacing, it is possible that the plot area does not occupy all of the available plot area, resulting in the plot panel becoming centered in the available space. In this case, the tick labels of the discrete cartesian axis have a wider margin to overflow to, without need to request for additional space.

      The current discrete cartesian axis tick label overflow algorithm fails to recognize this and still asks for additional space to fit overflowing labels, as the attached image shows. Note the unnecessary margin on the right, intended to fit the overflow of the last tick's label.

      To reproduce this issue, use the following chart specification:

      def.setDebug(16);
      new pvc.BarChart({
          canvas: "pvcBar2b",
          "width":  600,
          "height": 500,
          crosstabMode: false,
          animate: false,
          // reset
          margins: 0,
          paddings: 0,
          contentMargins: 0,
          contentPaddings: 0,
          // fixed bands
          baseAxisBandSize: 15,
          baseAxisBandSpacing: 5
      })
      .setData(relational_01_neg)
      .render();
      

        Attachments

        1. CDF-917.png
          CDF-917.png
          30 kB
        2. CDF-917.zip
          4 kB
        3. CDF-917-fixed.png
          CDF-917-fixed.png
          81 kB

          Activity

            People

            • Assignee:
              wfaulkner William Faulkner
              Reporter:
              duarte.leao Duarte Cunha Leão
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: