If you want to extend horizontally then it should be easy. Instead of
adding nulls to the end, remove them from the end with a for loop (or don't
add them) and add a single point at xaxis.max with the same y value as the
final valid trade.
I think it would look better with no graph when there is no trading.
Unfortunately there seems to be a bug with the "fill" feature. It should
fill straight down, not at an angle like that. just past the 16:06 tick.
Did you try doing the exact same graph with no fill? I think it would look
better that way (with your nulls) then extending the closing time straight
out horizontally.
- George Roberts
http://gr5.org
--------------------------------------------------
From: "Faried Nawaz" <far...@gmail.com>
Sent: Friday, November 12, 2010 9:20 AM
To: "Flotr Javascript Plotting Library" <fl...@googlegroups.com>
Subject: extending time series charts with null data points [flotr from svn,
rev 173]
> --
> You received this message because you are subscribed to the Google Groups
> "Flotr Javascript Plotting Library" group.
> To post to this group, send email to fl...@googlegroups.com.
> To unsubscribe from this group, send email to
> flotr+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/flotr?hl=en.
>
The pictures you posted before were clear as to the problem - the fill was
bad. Obviously if there is no fill, then there is no bad fill problem.
- George Roberts
http://gr5.org
--------------------------------------------------
From: "Faried Nawaz" <far...@gmail.com>
Sent: Tuesday, November 16, 2010 4:27 AM
To: "Flotr Javascript Plotting Library" <fl...@googlegroups.com>
Subject: Re: extending time series charts with null data points [flotr from
svn, rev 173]
> On Nov 12, 8:40 pm, "George Roberts" <gr-googlegrp...@spamarrest.com>
> wrote:
>
>> If you want to extend horizontally then it should be easy. Instead of
>> adding nulls to the end, remove them from the end with a for loop (or
>> don't
>> add them) and add a single point at xaxis.max with the same y value as
>> the
>> final valid trade.
>
> I ended up doing this, with no fill. With nulls and no fill, it still
> looked pretty bad -- the Y axis scaled from 0 to 10k (the current
> index level).
>
>
Oh!!!! Then all you need do is set xaxis.max=4pm;
If you specify xaxis.max then it will extend the xaxis out to that value.
The line won't go out to 4pm but the background grid will.
Well that's not the syntax exactly. You need to convert 4pm for that day
into a proper time value (milliseconds since jan 1, 1970) which should be
pretty easy in javascript.
- George Roberts
http://gr5.org
--------------------------------------------------
From: "Faried Nawaz" <far...@gmail.com>
Sent: Thursday, November 18, 2010 7:02 PM
To: "Flotr Javascript Plotting Library" <fl...@googlegroups.com>
Subject: Re: extending time series charts with null data points [flotr from
svn, rev 173]
> On Nov 16, 7:16 pm, "George Roberts" <gr-googlegrp...@spamarrest.com>
> wrote:
>> So now you don't like that Y axis goes to 0? Is that the problem?
>
> That's actually the problem I've had all along. That's why I tried
> nulls for the Y-axis values instead of 0.00 -- I didn't want it to go
> to zero.
>
>
>> The pictures you posted before were clear as to the problem - the fill
>> was
>> bad. Obviously if there is no fill, then there is no bad fill problem.
>
> In my original post, I didn't mention a fill problem.
>
>
>