Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Full Title in Pie Chart SVG #5595

Conversation

yari-dewalt
Copy link
Collaborator

@yari-dewalt yari-dewalt commented Jun 24, 2024

📑 Summary

Aims to fix the title of a pie chart overflowing outside the bounds of the rendered SVG.

Resolves #5567

📏 Design Decisions

The goal was to keep the rendering the same but to account for the title length if it surpasses the length of the overall diagram. If so, it will update the total width of the diagram and offset the chart so it remains centered under the title text. It also maintains the margin on both sides.

📋 Tasks

Make sure you

@github-actions github-actions bot added the Type: Bug / Error Something isn't working or is incorrect label Jun 24, 2024
Copy link

netlify bot commented Jun 24, 2024

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit a501a88
🔍 Latest deploy log https://app.netlify.com/sites/mermaid-js/deploys/6679cf1595ba0a0008b719ab
😎 Deploy Preview https://deploy-preview-5595--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.

Project coverage is 5.72%. Comparing base (0044aa3) to head (a501a88).
Report is 68 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #5595      +/-   ##
==========================================
- Coverage     5.73%   5.72%   -0.01%     
==========================================
  Files          277     279       +2     
  Lines        41988   42044      +56     
  Branches       515     491      -24     
==========================================
  Hits          2409    2409              
- Misses       39579   39635      +56     
Flag Coverage Δ
unit 5.72% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/mermaid/src/diagrams/pie/pieRenderer.ts 0.00% <0.00%> (ø)

... and 4 files with indirect coverage changes

Copy link

argos-ci bot commented Jun 24, 2024

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 11 changed, 2 failures Jun 24, 2024, 8:06 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pie chart : Title not visible if it is long
1 participant