I use a custom font in my Core Plot legend. However, this causes the label to no longer be vertically aligned with the plot key (the little color line representing the plot above). When using a standard font, the alignment is perfect. Can this be fixed please?
Related
Is there any way an alignment can be provided for the title in Core Plot apart from setting the graph title displacement.I am having a dynamic graph title and hence the title displacement would also have to be adjusted accordingly for each case. Also is there a way to set the font Style of the title say make it Bold?
If the titlePlotAreaFrameAnchor and titleDisplacement don't give enough control, you can always use a Core Plot layer annotation to position your own custom title anywhere you want.
Core Plot text styles include several properties including the font, size, color, bold, and italics. If you want the whole title to use one style, just set the title string and the titleTextStyle. If you want parts of the title to have different styles, use the attributedTitle (which takes an NSAttributedString) instead. See some of the plots in the Plot Gallery example app for sample code.
I have three pie charts displayed in a row. Two have two segments, one has five. All three have vertical legends.
Given that, the chart with five segments displays the pie slightly smaller, due to the extra height of the legend. It also has a slight negative vertical offset.
Is there any way I can set all three charts to render the chart in the same position? I've tried setting the center to 50%,50% in plotOptions, didn't help.
You have to set the marginBottom-Value of the chart to a value that is equal an all charts. Highcharts is trying to display the pie as big as possible, therefore it will use more space if the legend is not as big.
By setting the marginBottom you force the chart to ignore the actual legend size.
The center: ['50%','50%'] setting will only take into account the actual plot area. So if this area is decreased because of a taller legend it has no effect.
I made a jsfiddle where you can explore this settings:
http://jsfiddle.net/doc_snyder/dsmgy6ts/
I am working on an implementation of CorePlot that uses a chart with all white elements on a black view.
The chart is coming along nicely, but I cannot get my axis increment labels to be the correct color. To clarify, the labels for the axis are correct (time and usage) but the labels on the axis tick marks are still in black.
What I currently see:
Changing my view background to white to confirm that the tick labels are there:
I'd appreciate it if someone could point me in the right direction for making the tick mark labels white instead of black, as well as making the horizontal lines that go across the chart white instead of black.
Thanks in advance!
Line styles and text styles both have color properties (lineColor and color, respectively). Use the following axis properties to set the styles:
titleTextStyle: text style for the axis title
labelTextStyle: text style for the labels at the major tick locations
minorTickLabelTextStyle: text style for the labels at the minor tick locations
axisLineStyle: line style for the axis line
majorTickLineStyle: line style for the tick marks at the major tick locations
minorTickLineStyle: line style for the tick marks at the minor tick locations
majorGridLineStyle: line style for the grid lines at the major tick locations
minorGridLineStyle: line style for the grid lines at the minor tick locations
I am designing an HighCharts bubble chart (a matrix with coloured fields, drawn using SVG), that should have some text explaining the axis values outside of the actual chart area.
That is, because the axis values are A-E and need a lengthy explanation (A = Always exceeds goals bla bla etc.).
These explanations should be visible - next to the chart, not in it, and not in tooltips because these cannot be printed.
My question: Can I put SVG <text/> outside of the plot area? HighCharts seems to stretch the plot area as far as it can, leaving no space to either side.
You can use text text and define css styles i.e: position:absolute;left:20px;top:20px;
I'm using core plot for plotting a bar chart.
There i'm using custom labels (CPTAxisLabel) for X-Axis labels.
Some of my labels are long in length. In such cases, labels are not getting wrapped to next lines.
How can i achieve it in CPTAxisLabel ?
-Balaji R.
You can insert newline ('\n') characters in any text in Core Plot to force it to wrap to the next line. Use the textAlignment property of the text style to control the alignment (left, center, right) of the lines of text.