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

CCC - Axis tick label overflows - layout fails to take axis offset into account



    • 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:
    • Story Points:
    • 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.


      The CCC layout algorithm is usually able to conciliate the specified axis offsets, which impose margins, with tick labels overflowing from an axis panel. When the label overflow amount is already covered by the offset margin, then the layout is valid. Otherwise, the algorithm asks the parent panel for additional padding to encompass the overflow.

      Due to not reconsidering already requested additional paddings, to processing labels' overflow before axis offsets, the algorithm sometimes asks for additional paddings even though the offset margin would cover it...

      The attached image shows the result of this bug. The observed right margin was added to account for half of the right-most X axis label, that overflows from the axis panel. However, the specified axis offset of 10% would be able to cover the overflow.

      The image results from the following chart definition:

      new pvc.BarChart({
          canvas: "some-place-holder",
          "width":  350,
          "height": 400,
          margins:  0,
          paddings: 0,
          contentMargins:  0,
          axisOffset:      0.1,
          orthoAxisSize:   60,
          orthoAxisOffset: 0.1,
          animate:    false,
          interactive: false
      .setData(relational_01_neg, {crosstabMode: false})

      The bigger the label overflow, the bigger the added, wasted margin.




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


              • Created: