-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Padding for text label of extralines #824
Comments
You can use |
@imaNNeo thank u for your response. Purple line on screenshots above is |
So you want to render a text with some padding around it? |
yes, i want to render a text with some padding around it |
There is a |
@imaNNeo thank u for your suggest solution. Example: HorizontalLineLabel.padding = EdgeInsets.zero HorizontalLineLabel.padding = EdgeInsets.symmetric(horizontal: 5) I am looking for padding for text inside label. So it would be nice looking color frame around text. Example:text with paddingtext without padding |
Got it. It works as a |
@imaNNeo VerticalLineLabel -> labelResolver, return only String. Why not a Widget? For example, I would like to put an icon. |
Because having widgets inside the chart is not as easy at it seems |
@imaNNeo I could take a look at this. We could add margin/padding for all of the chart tooltips as well? |
Hi @k0psutin, Yes exactly. We can have |
Hello and thank u for great chart library!
It would be nice to have padding around text, because for now for make text look nicer we have to use spaces on both sides of text.
Example (with padding):
![Screenshot 2021-11-22 at 21 53 04](https://user-images.githubusercontent.com/7195911/142933716-286b0209-364c-4db4-a362-3be6d7412510.png)
Example (how it works now):
![Screenshot 2021-11-22 at 21 52 46](https://user-images.githubusercontent.com/7195911/142933748-a96d193c-4e28-47d2-89be-c61ebdbff8f9.png)
THank you for your help!
The text was updated successfully, but these errors were encountered: