The windowing function operates only in confines of min/max of your
axis. It doesn't allow to go outside of these boundaries.
1) You can set boundaries explicitly using min/max on axes as you see
fit. Remember that you do not use fixUpper/fixLower when you want to use
min/max.
2) Slice your original data array and use these slices to show data
subsets, if it is required.
3) Now you can use scale/offset without going outside of the bounds.
Thanks,
Eugene Lazutkin
Dojo Toolkit, Committer
http://lazutkin.com/On 08/14/2009 10:36 PM, Shruti Krishnagiri wrote:
> I have a data array of roughly 5 data points. I'd like to show data
> points 3 to 5 on the chart without having to split my data array and I'm
> using the chart.setAxisWindow("x", 1, 2) call. I really don't want to
> scale the chart more than the original scale, and simply shift the
> offset such that the origin is now closer to data point 3. Why doesn't
> it work? It seems that I need to specify scale > 1 to see any shifting.
> I think I'm probably misunderstanding the scale and offset function.
> I don't see a way of specifying which datapoints I want in the chart -
> meaning, I can't specify a start and end. I suppose this is because the
> scale factor will determine how many can be fit in the display. Is there
> an easier way to simply shift the origin?
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> FAQ:
http://dojotoolkit.org/support/faq> Book:
http://docs.dojocampus.org>
Dojo-interest@...
>
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest_______________________________________________
FAQ:
http://dojotoolkit.org/support/faqBook:
http://docs.dojocampus.orgDojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest