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

CCC - Axis tick label overflows - fails when OverlappedLabelsMode is "hide"

    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 `OverlappedLabelsMode` is `"hide"` and the number of labels is such that the last label is hidden, the label overflow algorithm still accounts for the overflow caused by that label. This results in unnecessary space being reserved for a hidden label.

      This issue can be reproduced with the following chart specification:

      def.setDebug(16);
      new pvc.BarChart({
          canvas:  "pvcBar3",
      
          // Reset
          animate:    false,
          interactive: true,
          axisOffset: 0,
          margins: 0,
          paddings: 0,
          contentPaddings: 0,
          contentMargins: 0,
          
          "width":   600,
          "height":  300,
          stacked:    true,
          baseAxisFont: '16px sans-serif',
          baseAxisTicks: true,
          baseAxisOverlappedLabelsMode: 'hide'
      })
      .setData(relational_01, {crosstabMode: false})
      .render();
      

        Attachments

        1. CDF-919.png
          CDF-919.png
          68 kB
        2. CDF-919.zip
          4 kB
        3. CDF-919-fixed.png
          CDF-919-fixed.png
          69 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: