How to disable auto range after Zooming in jfreechart? - zooming

Hi i am new to jfreechart.
I had set the manual range for both xAxis and yAxis.When I performing zooming operation on the graph it is zoomed.
But the problem is whenever I zoomed out of the graph the RangeAxis(yAxis values) was set to its default values and not to set my own values on YAXIS.
is there any property to disable auto range on yaxis while zooming?
Please help me, I have been troubling with this issue..
Thanks in advance..

See ChartPanel documentation:
chartPanel.setDomainZoomable(false);
chartPanel.setRangeZoomable(false);
You can also consider overriding ChartPanel.restoreAutoBounds(), as suggested in another question.

Stumbled across this old post from a Google search. In case anyone digs this question up, I think what you'd want in this case is:
plot.getRangeAxis().setAutoRange( false );
Should tell the y axis not to recalculate and override your manually defined range, which I believe is what you were after. No idea if this existed years ago when you asked the question, but it's there now.

Related

SciChart: How do I control whether rollover axis labels are displayed

I have a chart with multiple modifiers that provide different behaviors on rollover. The chart used to have a vertical line that would show up on rollover. I was asked to get rid of it, which was easy:
<sci:RolloverModifier
DrawVerticalLine="False"
but I noticed that the label that shows up under the X axis is still there. I've tried to remove it, I didn't figure out how to do it.
I've examined some other graphs in the application, and found a similar one, which has the labels showing on both the X and the Y axis
[edit: image removed to prevent potential client IP issues]
I tried comparing the charts, and they do have different sets of modifiers, but I didn't find out what causes one graph to only have the graph on the X axis, and the other one on both.
The property you want is RolloverModifier.ShowAxisLabels.
However, the screenshot you've posted looks like the CursorModifier. If you find out that the CursorModifier is adding the labels then you can either remove this modifier, or you can try a workaround like this one on the SciChart Forums (which is 4 years old so may be out of date!)

Is it possible to programmatically set the start background photo in WP8.1?

I've explored to find out API but nothing found. If anybody knows please help me to do that.
I don't think such an API exists.
There is a vote on uservoice.com for this, but the response is clear, even though it is possible to set the lock screen wallpaper starting from WP8.0,
...the story has not changed for the start screen background.
It was 2 years ago, i am not sure if this has changed in WP8.1.

Is it possible to make fullcalendar not overflow events?

I'm trying to get fullcalendar to work with my JSON data, and so far it is going good.
I've got my JSON loaded and everything but on certain days their are a lot of events.
Is it possible to make it so each square in the calendar is a set height?
I've tried both contentHeight and height but neither of them seemed to help with this problem.
Yes, see http://arshaw.com/fullcalendar/docs/display/eventLimit/ for details on the eventLimit option introduced in v2.1.0 of FullCalendar.

Google Maps - Grid based clustering

on this page https://developers.google.com/maps/articles/toomanymarkers
it says how this is the easiest clustering posible, but I can't find any client side solution for this. Does anyone know for free open source, client side solution of grid based clustering for google maps markers ? i don't want MarkerClusterer.
I didn't find it, so i went and start coding my own solution. The first obvious request is that it has to be fast for up to at least 1000 markers loaded on map. Every zoom in out, move and soo on, will repeat procedure/function of clustering. Grid blocks are customizable, default value is 50*50 pixels.
Image below is showing what should the result look like.
I'm having problem with algoritem, now all I can think of to achive this is to itterate through all markers for each grid and ask if it is inside bounderies and then increase array of grid ++. This obviusly can't be done that way. There should be some hash or something that just one itteration through all markers would be needed and I would know in which grid specific marker belongs to.
I hope someone will give me a hint for algoritem I'm after. Thank you !
Seems like geohash is the answer to your problem, you even allude to that solution in your question. It's explained well here:
http://blog.trifork.com/2013/08/01/server-side-clustering-of-geo-points-on-a-map-using-elasticsearch/
I am actually exploring developing a similar clustering algo for Google Maps API v3. I'll post more if I actually get anywhere with it.
You can use a geohash or a space filling curve to reduce the dimension and reorder and hash a marker. On the server side you can use a point and a spatial index data stucture but you can also compute the geohash manually. Look for xkcd internet map comic and the hilbert curve to see how it works.

Making the points always visible in a flex line chart

I'm trying to do something very similar to this example (source code enabled):
http://www.sunild.com/proto/line_chart_example.html
When you hover over each data point, a circle appears indicating that this is a point. How do I keep those circles visible at all times?
Edit: this example isn't mine, but you can view the source enabled here:
http://www.sunild.com/proto/line_chart_example_src/index.html
Umm, the case you show is a working example giving no details about the code itself. There are enormous ways the code could be.
For Eg - The code could be keeping an event listener over & out a mouse event...So removing it pretty much keeps the circles there.
But still I suggest show at least what you are doing, if not that code to get some clue.