In the given example my first and last bar tick mark placement are not aligned centre.
Example:http://jsfiddle.net/geeet0ek/
How to make it align centre?
At this moment this is not available, because ticks are aligned to group. In your case empty value is null, so takes a place. As a result ticks is in the middle of group. You can post your suggestion in our uservoice here
Related
In QChart, how can I set tick with uneven space? In the example chart below, notice the first grid is smaller than others. How is it actually done? Thanks.
You need to set the TickType of your QValueAxis to QValueAxis::TicksDynamic.
Then you can set a tick anchor (i.e. the value where the first tick should be placed, e.g. 80.0 in the example image you provided) and tick intervals (the value between ticks, e.g. 2.5 in the example image)
Please note that dynamic ticks were only introducted in Qt 5.12.
How can you get the vertical (left or right) axis label to align with the major tick mark when the label angle is 90 or 270?
You can set it in the chart editor under Chart|Axis|Left (or Right|Labels|Options - Position: set to "After Tick". And this would be great if the property change was saved. However, it is not.
I could do this in code if I knew what the property name was and the property attributes were.
This is TChartAxis.Texts.Position of TAxisLabelsPosition type, for example:
Chart1.Axes.Left.Texts.Position:=lpAtTick;
I have used Spline with inverted axes, in that i need categories alignment left side.
"Is committed to advancing the future of technology" at present it is right aligned, now i need left aligned.
Please help me on this.
or example
http://www.highcharts.com/demo/area-inverted/grid
In the above link i need Monday et.. should be left aligned.
Yes, it's possible, but you will need to specify:
chart.marginLeft
xAxis.labels.x
xAxis.labels.align to left
See together: http://jsfiddle.net/fAfC4/
Note that leftMargin and x are fixed values, so it won't resize in a default way, like does by default.
I'm trying to customize a Coreplot graph in many ways I can and the next thing I would like to do is place the X Axis Labels (one that is custom as well) at the bottom of the graph, independent of the X axis' position (whether it's scrolled up or down).
To make it clear, it is similar to giving the labels an offset value of something like 50.0. But offset is not the property I'm looking for since it fixes the labels location relative to the X axis.
Any way this can be done? Or do I have to skip the axisLabels property and place and layer or something manually at the bottom of the graph?
EDIT: Alright, I managed to place an axis on the bottom with CPTConstraints. But it's not on the bottommost. If a plot point is on those levels, the plot line overlaps the labels. I tired padding of the graph but of course, it moves the whole graph, hence the issue persists.
Thanks in advance
Make a second x-axis. Have the first one draw the axis line, tick marks, etc., as normal but no labels. Label the second one and set all of the line style properties to nil so it doesn't draw any of the lines.
Turns out that aside from the graph, the plotAreaFrame property of the CPTGrpah also has paddings. If you give more paddings to plotAreaFrame than that of the graph, the plot will be drawn in a smaller frame and the rest of the graph area will be for you to add what you want (i.e., a second Axis).
Big thanks to #Eric, for trying to answer Every single CorePlot question as soon as possible.
CorePlot does have a lot of customisation than I thought.
Apart from the issue I am trying to fix atm, I would like to know how I can make the x-axis labels to draw wherever there is a point drawn. As you can see on the screenshot there are three points in time. So instead of the label "1/10/54' (yes that is year 54) floating nowhere, I want three labels, one below each point.
(Note the 3 points are only for illustration, needs to be expandable.)
If the spacing between the labels will be irregular like your sample screenshot, you'll want to change the axis labeling policy to CPTAxisLabelingPolicyNone or CPTAxisLabelingPolicyLocationsProvided. Both policies require you to provide the tick locations. The first policy also requires you to make custom labels that don't have to be at the same locations as the tick marks while the second will automatically make labels at each tick location using the standard label formatter.