I am using c3.js to render a graph. My tooltip is only moving along y axis and not on x axis.
Related
I am plotting my x axis labels vertically, and using the following line to provide a little space under the axis
axisSet.xAxis.axisConstraints = [CPTConstraints constraintWithLowerOffset:40.0];
But now the vertical length of the label bumps into the first value on the y axis. Is there a way to compress the graph a little so the first value on the y axis begins a little higher? Thanks.
Adjust the axis' labelAlignment and/or labelOffset to reposition the labels.
I have created a scatter chart with Highcharts, both x and y axes range is from -20 to 20. It is shown as a grid, I set "gridLineWidth: 1" both for x and y, so all the lines have the same width.
Is it possible to give a different width only to x and y axes which cross the origin?
I've solved using plotLines to both axes.
Using the Mac OS framework I have the x and y axis interesecting at zero ( X interesects Y axis at Y = 0 and vice versa ) however the Y axis is at the far left of the screen where it is not visible .
Is it possible to specify a fixed margin for Y axis from the left of the plot area irrespective of the X Range ( and still maintain both the axes interesecting at 0 respectively) ?
One way i thought of doing this ( forcing a margin for Y axis ) was via specifying a negative value for the low X however this does not scale well when doing wide ranges of X ( 100's vs 1000's) . I need an easier way to predictably make X intersect Y at a fixed pixel offset in the chart to render it consistently .
I've tried using the y.orthogonalCoordinateDecimal = 0 . it does what it is meant to do ( make y intersect X at 0 ) however the actual intersection point in the graph is not where I desire . I want to be able to control the location of that intersection say 100 pixels for X and 80 pixels for y .
Use the axisConstraints to hold the y-axis at the left side of the graph:
y.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
If you always give the xRange of the plot space a location of zero, this will give the appearance you want.
Helo,
Is it possible to put a line on zero value of y axis ?
Because i have negatives values so i changed orthogonal value of my axis to the lowest one on my datasource.
Thanks
Make second x-axis and position it at zero. You can leave off the labels and tick marks to just get the axis line. See the axis demo in the Plot Gallery app for an example of how to add additional axes to a Core Plot graph.
How to display the custom number in X and Y axis?
I need to display my custom subject name in x axis, Marks in Y axis.
Set a labelTextStyle and labelFormatter on the plot to create automatic data labels. This will work with any plot type.