Skip to guide
Rainbow Lab/Documentation

Graph Foundry

Fit the chart into your UI

Resize the chart's RectTransform to create more work area. Use the Inspector's Resize chart button and drag its edges in Scene view, or edit RectTransform Width/Height. For stretched anchors, adjust the offsets or the parent/layout group's size. A Layout Group may control the rectangle; adjust its Layout Element preferred size or parent constraints instead. Transform Scale and Canvas Scaler scale the text along with the chart, so they do not provide more room relative to the text. The chart Inspector shows its current work area in UI units. Text & layout settings opens the relevant foldouts.

For a pie with a side legend, widen the whole RectTransform, then increase Legend > Legend width. That width reserves room beside the circle; it is no longer capped at half the chart. Legend > Text fitting > Wrap keeps the chosen font size and uses multiple lines, with row heights measured from the text. Increase chart height if the legend summarizes entries as + more; top/bottom legends instead need more Legend height, or more columns. Ellipsis retains single-line truncation. Overflow draws outside the text box, which can overlap other content and is still subject to parent UI masks.

For labels with connector lines, hide the legend if it repeats the same information, choose Text & labels > Text fitting > Wrap, and increase Label width. The circle automatically gives up width for the label columns; the former 24%-of-plot cap is removed. Wrapped connector labels use their measured heights to avoid overlapping rows. If there is insufficient height, the largest shares retain their labels. Pie & donut > Pie size (%) makes the circle smaller without shrinking the text or changing the chart rectangle. Inside labels also use Label width and Text fitting, but they can overlap neighbouring slices: use outside labels or a legend for long names.

Extra plot padding is an inset: increasing it removes plot space. It does not enlarge the work area. The Inspector reports truncated text and summarized legend entries with suggestions. New presets use wrapping; existing charts/styles keep their previous ellipsis mode until you change Text fitting.

The chart Inspector follows the setup order: Data, Scale & label density, shared style/preset selection, then chart-specific geometry (Bars, Line, Pie & donut or Radar). Separate foldouts contain Background, Text & labels, Legend, Axes & layout, and Interaction & masking. Only relevant options appear. Geometry lengths use UI units; percentage and angle fields include their units. Plot padding uses named Left/Right/Top/Bottom controls. Font and generated-label settings live together under Text & labels.

Graph Style assets use the same appearance controls. Show settings for filters the visible chart-specific options without changing the style's type or data. Editing the style updates every linked chart. Make local copy detaches one chart; Save style... stores a reusable appearance. Preset buttons replace appearance settings while retaining data, size, font and events.

Rounded Image groups Sprite/Texture inputs under Artwork, then colour/radius and pointer/mask settings. An assigned Sprite takes priority, so the Texture field is disabled until the Sprite is cleared. Sample controller components keep their internal UI wiring under Scene bindings; edit visual settings on the Graph Chart components.

Show background hides only the panel, keeping its colour and radius for later. Embed in my UI hides the background, key and hover details in one click, preserving chart data and geometry settings. It makes a local appearance copy when a shared style is linked. You can independently hide category names, numeric scale labels, the zero baseline, grid, values and the donut centre total. Hidden keys and axis/category labels return their reserved space to the plot. Other graphics and authored children are unaffected.

The Legend section supports Left, Right, Top and Bottom positions, Start / Center / End alignment, an X/Y offset, key/item width, top/bottom height, columns and row spacing. Automatic uses the right side for a pie and the top for series. Key/item width reserves space on the sides and limits item widths on top/bottom, allowing a compact group to align left, centre or right. The same Show legend switch enables the colour key on bar and line charts. Offset moves the key within its reserved area; allow enough room to avoid overlapping your own UI. Entries that do not fit are replaced by a remaining-item count. Increase the key area or chart size to show more. Pie key values and percentages are separate switches.

Bar Value position supports Outside End, Inside End, Center, Above and Below. Outside/Inside follow the sign of negative bars; Above/Below refer to the rectangle. Inside or Center on stacked bars labels individual segments; outside positions label signed totals. Line values can sit above or below points. Value distance, X/Y offset, font size and value colour are independent of other text. Category labels have their own offset; extra plot padding uses left/top/right/bottom UI units. Maximum Labels still limits crowded category/value rows.

Pie Slice labels can show values, percentages, names or names with percentages independently of the key. Segment Center is the default label placement: donut labels sit halfway through the visible band and solid-pie labels follow the area centre of each slice. Custom Radius retains the adjustable fraction of circle radius; above 1 places text outside the circle. Slice labels use value font/colour/offset controls. They do not perform collision avoidance: use fewer slices, a larger chart or the key for dense data. The donut total has its own switch. The pie uses balanced top/bottom padding, so a side key or hover-details setting does not push the circle down. With the key hidden the circle also centres horizontally in the available chart area, making a standalone pie easy to place beside your own labels.

For pie labels like an annotated diagram, choose Slice labels (Name, Value, Percentage or Name And Percentage), then Placement > Outside With Lines. Labels sit in left/right columns with elbowed connectors starting on their slices. The circle automatically makes room for them. Adjust outside label width, minimum row gap, connector length/width, and optional slice-coloured lines. Value font, colour and offset controls also apply; connector ends follow the text offset. Hide the key if these labels provide all the information you need. Nearby callouts are separated vertically. If there is too little space, the largest shares retain callouts; every slice still draws and remains available to hover/click and to the key. Inside Segment Center and Custom Radius remain separate options; existing appearances keep their selected mode.