Bubble charts Vaadin: how can i set the axes origin on coordinates 0,0 - charts

Now vaadin set X axis on min vertical value(bottom) and Y axis on min horizontal value (left), but i will like set axes on middle

I'm afraid that axis are always in left and bottom of the plot area.
One thing you can do is set the min at negative, or leave it automatic, and add a plotline with value 0 for both axes. That way you can visualize the chart's quadrants.
If you're using java API you can use addPlotLine method in xAxis or yAxis classes. You can check the java tab in the boxplot demo

Related

What are the Coordinate Axes alignment in plot generated by quiver

I am using quiver to plot optical flow over my image using this answer.
Following is taken from matlab quiver documentation page
A quiver plot displays velocity vectors as arrows with components
(u,v) at the points (x,y).
For example, the first vector is defined by
components u(1),v(1) and is displayed at the point x(1),y(1).
We know that while reading an image the index(1,1) is at top left.
Now where does quiver assumes it's origin and in which direction it assumes the alignment of axes while generating the plot.
By default the x axis values increase to the right and the y axis increase towards the top.
However imshow which is used in the linked answer reverses the y axis direction, similar to axis('image'). This is because image data is generally stored with the top left of the image appearing first in the data.
The directions can be checked with:
get(gca,'ydir')
get(gca,'xdir')
if hold is on quiver will plot using this reversed y direction so the origin is in the top left. (assuming the lowest value for the axis is 0)
If hold is not on or the directions are not reversed the origin will be at the bottom left and quiver will use with the default axis directions. (again assuming values>=0)

Highcharts tooltip multivalues when X is a constant

There are no possibility to see ToolTip on irregular chart when some points placed on the same X line but with different Y values.
actually I expected observe tooltip in that places where mouse positioned and if the graph Point exist in the small radius around. However for the picture above we can observed tooltip only for the higest and pre-higest points, but not for the lowest and pre-lowes points.
Thanks
Yes, duplicated points on xAxis are not supported for (sp)line series. You can use scatter series with lineWidth: 1 instead.

How do you accurately set the offset of an axisLabel in CorePlot?

Problem Statement:
A bar plot in created with CorePlot has a Y-axis that features a dynamic range. The minimum value of this range is presumed to be <= 0. The maximum value of the range is presumed to be > 0.
The bar plot features custom X-axis labels which have an offset to distance themselves from the 0 line of the Y-axis. (label.offset)
However, because the exact location of the 0 line may change during runtime, a static value to offset the X-axis labels is not sufficient.
Question:
What is the appropriate way to accurately set the offset of Axis labels, when axis parameters change at runtime?
Screenshot attached to show problem. Labels should be below the ($200,000) line, but because the top end value is dynamic, they move up and down.
http://i.imgur.com/jdwy1c2.png
From the linked picture, it doesn't look like you're drawing the axis line. Use axis constraints to hold the x-axis at the bottom of the plot area. If you do want to draw an axis line, e.g., at y = 0, add a second x-axis. Use one to draw the axis line and the other to position the labels. Set all of the line style properties of the second axis to nil so it doesn't draw any lines and use constraints to hold it at the bottom of the plot area.

Core Plot Bar Chart Columns

Is it possible to set some padding between the first bar and the Y axis?
The last bar is always a few pixels away from the right margin of the plot but the first column always appears cut by the Y axis
Adjust the xRange of your plot space. Decrease the starting location and increase the length.

Chart Align YAxis to YAxis2

I am currently building a chart which has two y axis(left and right). As I plot points on the chart for both axes wrt xaxis, I can see the grid lines in the chart not properly aligned.
Is there any algorithm which by taking the inital point of yaxis and y2 axis and calculates the maximum and minimum values of both axes so that the grid lines in the chart can be aligned properly.
Thanks,
Mahesh