How to have TeeChart left Custom Axis Title, with no labels, up tight against the chart and sized so axis title labels not clipped - teechart

Delphi XE 10.2
TeeChartPro V2020.29.200113 32bit FMX
I am trying to have a left axis with no labels just a Title at 0 Degrees with the tile right justifed against the chart. Furthermore I would like to size the Charts Left Margin to be the size of the widest Left Axis Title so there is no clipping.
My current setup is that I have set the TChartAxis.Labels to False and TChartAxis.Title.Angle to zero which produces the attached chart.
How do I get the Axis Title to be up tight against the chart as shown with the arrow in the image?
How do I dynamically resize the TChart Left Margin to not clip any TChartAxis Titles as user resizes the chart?

Related

Change to horizontal orientation for Seaborn `histplot()`

How can I use sns.histplot to create a bar histogram where the bars are oriented horizontally instead of vertically (the default) and the labels are on the vertical axis?

Relative Xcode Storyboard constraints

I have an image with some elements that that I would like to put some text labels on (they are not part of the image because they will be translated). As the image will be scaled and centered in the view these labels cannot have fixed distances from e.g. left and top of the image.
How do I set up constraints in the Storyboard where the x,y position are scaled relatively to the scaling of the image?
PS: For now I've done it programmatically - but I suppose it should be possible to do in the Storyboard.
You’ve to set constraints of labels with imageView
Center label horizontally with imageView
Center label vertically with imageView

amCharts 4 - How To Make Chart Widths Equal With Different Length ValueAxis Labels

In at least amCharts 4, the chart widths seem to be dependent on the length (e.g., the number of digits) of the valueAxis labels. For example, take the charts in this codepen. With the top chart labels set at a precision of 8 and the bottom chart having a max of 5 digits (e.g., "10,000" as the max), the width of the bottom chart can be made equal to the width of the top chart by including the following:
valueAxis2.marginLeft = "32px";
However, if the number of digits in the bottom chart's valueAxis labels changes, then the left margin is no longer correct. For example, uncomment line 22 to see this. How can the chart widths be made equal independently of the valueAxis label length?
This answer discusses a solution for amCharts 3, but there doesn't seem to be a minMarginLeft property in amCharts 4.
Good question. I highly recommend checking out our Working with Containers guide. The last section illustrates the pre-defined Containers for XYCharts.
Any y axes rendered on the left will be in the chart.leftAxesContainer, so you can set those to the same width on each chart, e.g.
// Top chart's left y axis is around 96px (checked via its measuredWidth)
chart1.leftAxesContainer.width = 100;
chart2.leftAxesContainer.width = 100;
Here's a fork:
https://codepen.io/team/amcharts/pen/a0a990fa6420b446508770ccae40ca7d
Screenshot (no playing with margins required!):

SSRS Stacked bar chart with series spacing and outer axis label rotation

I've got a stacked bar chart with legends, but depending on the data selected, it becomes unreadable because of the space added around the bars and the series and the fact that the outer horizontal axis label won't rotate. I've tried as many things as I can think of, but nothing alters the spacing or the rotation on the outer axis. Picture 1 gives you an idea of what I mean. Main thing that would probably help is the rotation. Using VS2012 but not inline code. Any help appreciated.

Zoomable scatter chart

In Qlikview 11 I managed to set up (amongst others) a nice scatter chart without any major problems. Now I would like to be able to zoom into a region in that chart. Intuitively this could be accomplished by selecting a rectangular region with the mouse. Incidentally this works fine in "regular" line or bar charts. The new x and y axis regions correspond to the selected rectangle. However this does not happen with my scatter chart. I suspect this has something to do with the way dimensions are handled in scatter charts. For easier understanding I appended to screen-shots of the status quo - or how I don't want it to be.
Full chart with selected region http://img801.imageshack.us/img801/4873/6ccc.png
Chart displaying only the selected data http://imageshack.us/a/img138/9053/kck5.png
From what it looks like, I would guess that the scatter plot has hard coded axis max and mins. Check the "Axes" tab under chart properties, and uncheck the scale boxes. That should allow the chart to zoom in.

Resources