I am trying to Scale the bubbles within the bubble chart. The problem is, I have no control over the data coming in, and the radiusField values are usually below 0 ( no negative values ) with a max of maybe 2.
I created an ItemRenderer for the BubbleSeries, and tried adding a scaleX and scaleY value on the createChildren method, but nothing happens. Can anyone help me out?
Thanks!
Michael
What you need to do is modify the axes to to have a different min/max value. If the axes change their min/max, you can modify the scale of the information being shown. You can set it statically or change it dynamically with the data provided.
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_06.html
Related
When a graph is very wide I want to show the y-axis values also on the right side of the graph so it becomes easier to read the corresponding values of the lines.
I know how to duplicate the left axis to the right. And when the graph is created I use ActYscl to set the range of scale nr 0 (left) to scale nr 1 (right). This works when the graph is created and also the zoom and pan function work on both y-scales. However, when I use the Autoscale function of the Graph Pallet, only the initial axis is scaled (probably because the graph data are only linked to the original axis).
Is there a way to make the autoscale function work for both y-axis at the same time?
Charts and graphs have an Autoscale Range Change event. Use an event structure to catch this event and update the range of the duplicate scale to match the first one:
I've used a chart for this example as it's simpler, but it should work the same for a graph. Of course you need a way of telling the event loop when to exit; I've used the Value Changed event of the stop button. If your application uses an event-driven structure anyway, you should just be able to add the autoscale event to your existing event loop.
I am using JFreechart - createLineChart and plotting some data. I want to set two thresholds; one upper and another lower. To represent the same I want to draw reference lines. User must be able to drag these lines to adjust the values for upper and lower thresholds. Is it possible to implement? Till now I could only draw the graph with dataset.I could even get the mouse click(x,y) coordinates in pixel. I have no clue how to add new lines to the graph and make them drag. Kindly help.
Along with CrosshairOverlay, I used multiple annotations. Following link helped me a lot! Thanks.
JFreeChart: Dynamic point selection in ChartPanel using ChartMouseListener and mouse move
At the moment when a data point is clicked, all other data points are shaded. Is there a way to prevent this?
fig = fig.circle(x, y)
Ideally, I would like to increase size of the selected circle instead. Is there an easy why to do so?
Update
Seems we cannot change size... according to here:
Only the visual properties of selection_glyph and nonselection_glyph are considered when renderering. Changing
positions, sizes, etc. will have no effect.
However, we can simulate it using line_width property, it becomes more fun if I combine it with line_dish.
As of Bokeh 0.12.15, you can set nonselection_glyph=None when you call a glyph method, for example:
p.circle(x, y, radius=radii, fill_color="navy",
line_color=None, fill_alpha=0.6,
# this is the new part
nonselection_glyph=None)
Our requirement is to set the yAxis label to a default value. Let's say 0, which should be the minimum to the grid. Values should not go below 0 to negative. How do I achieve that? It is okay that the line of graph can be on the bottom if the data points are 0.
There are files which can be edited - app.js, axisEditor.html and many others to achieve this, but out of many functions which should be edited to achieve this?
Yes, I got the answer. While exploring I got an option in the edit menu where I can set grid max and min value for the graph.
I have 2 Y-axis on the chart and I am trying to use annotationElement's localToData to get the data points associated with a Point on the chart.
The annotation Element is able to return a set of values for the point ( 1 Y - data, 1 -x data), But it is returning the values against one axis and not the other.
Is there a way to associate the annotation element with a specific axis ?
Sorry, this is more of a Flex issue which I did not fully understand at the time of posting.
At that time, My plot series was associated with right axis and hence I felt there was coding error on my end when i called localToData.
Anyway, there is a bug in Flex PlotSeries localToData method that shows up only if you have flex debugger installed.
The bug is a Null Pointer exception on Plot Series code while trying to get filtered data.