I am using Summernote Text Editor but facing a Line height change after applying Bullet point to a particular line or Para.
Do we have any option to set default Bullet Line Height?
Related
We have a LineChart in Recharts, and want to add labels to the lines themselves, but noticed that the label attribute of applies the label to every single datapoint of the line instead of just to the line itself.
Is there a way to add a label to the entire line similar to how reference line works?
I have a run-of-the-mill nvd3 line chart. Sometimes the data represented by the chart is patchy. I would like to be able to style part of the lines differently to represent this, such as in this example:
Here, the dots are joined by a dashed line when far apart and a full line when close together. Is it possible to apply stroke-dasharray only to certain parts of a path, or do I have to trick nvd3 into creating a new line for each segment where the styling changes?
You can't apply stroke dasharray to part of a path, but you can create a very long stroke dash array that equals the length of your path and carefully calculate the locations of the dashes in JavaScript so that the dashes line up with the part of your path that you would like dashed.
I'm using nvd3 to draw a chart, But I need to add middle line manually.
I use the lib's axis to translate a 'g' to draw the middle line, but the lines for y-axis 'cut' the vertical red line as the below, so can it set css like 'z-index' to above the line?
I'm looking for a way to create a text field that is just a line (png or something) and on that line the user can type.
What I have is a line (png) and set this as background off the text field. Then vertical align this so the line is in the bottom.
It is almost what I want to achieve, only the text is floating a bit.
Someone could help me?
Working in xCode btw.
This is achievable by using UITextField and UIImage.
1) UITextField with
BorderStyle: UITextBorderStyleNone
Vertical Alignment : UIControlContentVerticalAlignmentBottom
2)Place UIImage right bellow the text field and add line.png
I wonder how to define the line spacing in a multi-line lable or text item for pdf output. While increasing the line height within a style works fine, decreasing the height to reduce line spacing doesn't seem to work.
Any suggestions on how to reduce the line pitch?
Thanks
Try removing top and bottom padding. I don't know about labels and text items, and maybe it's not the same, but I had a similar problem in a table with 8pt font in the details. It would look fine in HTML, but in PDF the space between the lines would be huge.
A good trick is to set background colors on the item and the surrounding cell and whatever other elements you have and you'll be able to see which element steals the space.
Then tweak the paddings, line height and font size to reduce the extra space as much as possible. Use the 'Advanced' properties panel (or preferably stylesheets), as line height is not available in 'General' for some elements.
I managed to get my table looking great doing this if I removed ALL top and bottom padding (from row, cell and data element), used a row line height of 10pt and a font size of 8pt.
There seems to be a bug that causes the actual text inside the data element to be somehow padded at the top no matter what in PDF. If you color the data element background and then select the text in the report, you'll see that the text is set too low on the element, overflowing a little at the bottom. Thats the reason 8pt font and 8pt line height wouldn't work for me, it would cut off the bottom of the text.