I am creating a graph chart using telerik TChart. Using storyboard I set the position of a graphview.
For iPhone,it's height is correct for all values of chart but for Ipad if I give maximum value it will touch the above labels. so I have to reduce the height of that view of chart programmatically.
Is there any way to reduce the height of graph.If I want to set frame size height of graph using
_graphView.translatesAutoresizingMaskIntoConstraints
it will generate exception. so is there any other way to set height.
Related
I'd like to customize a data-defined size legend in QGIS separately from the plotted points in my map for increased legibility, setting the legend fill color to transparent and outline color to black.
I assume that this might be possible to do in the "Legend symbol" option in the print layout, but I cannot access it (see picture) and I'm not quite sure why. The only customization available is for the line connecting circle size and value.
A workaround might be to create a new style in a separate layer, but is there a more direct way to do this in QGIS?
The version I'm using is 3.20.3.
Image: Data-defined size legend customization box
I have a shiny app which displays a geom_bar chart and some text that is displayed in a geom_text subplot. Like so:
All well and good when the screensize is large. But when the screensize is small then the font gets out of hand:
Obviously the geom_bar width has no trouble scaling down to fit in the smaller screen real estate. The text, however, needs some extra help.
I would like to know if there is a way to determine the barwidth in a dynamic plot. If I could find out what the bar width was, then I could scale the font accordingly.
Does anyone know?
I use Angular to make a website and on the website, there is a pie chart. I need to set the size of a pie chart (chart.js). Since I generate a pie chart dynamically, the number of labels of charts would vary. If the size of canvas is fixed, then when there are less labels, the size of chart becomes large; when there are more labels, the pie chart becomes small. Is there a way to make the size of pie chart fixed no matter how many labels I have? Thank you.
if I understood correctly, you can use maintainAspectRatio: false in options and then set the width and height via css/sass
I am desperately trying to dynamically find the optimal size to draw a UILabel within a pie chart (see my outline below).
The label center should be in the middle of each piece of the pie, which is determined by the CGPoint at 1/2 radius and 1/2 pie piece (= startAngle+(endAngle-startAngle)/2).
Now the problem is, that neither the width nor the height of the UILabel are known. The width mostly depends on the label's center position (e.g. if the pie piece is the upper half circle, the width is widest). The label lines are "unlimited" (label.numberOfLines = 0) and label.text is user defined ("description" of the pie value). Only the fontSize range between minimum (6.0f) and maximum (14.0f) is defined.
I already thought of using a UITextView with the pie piece's UIBezierPath as exclusionPath, but then centering and resizing the UIFontSize won't work - at least I didn't find a way to do it.
Any hint on how to resolve this issue is much appreciated :)
I'm looking for a way to set the size on a chart either dynamically or at creation of a single vega-lite chart. So far, I have tried setting width and height on spec.config.cell used for trellis charts which sets the height only, also calling the width() and height() methods on the view object, e.g.
view.height(200).width(200).render()
best I can do is get the canvas to resize and crop the chart, but the chart does not redraw to the specified size. I'm looking for it to work with padding:'strict' to specify the overall size, not just the size of the data rect.
Aside from manually setting the bandWidth for ordinals it seems the feature isn't implemented just yet:
https://github.com/vega/vega-lite/issues/1356#issuecomment-231825910