Re: [Lift] Re: Improving lift-flot

2009-11-25 Thread Timothy Perrett
David,

Francois is still lurking - if changes are needed, just ping him a mail or IM 
and im sure he'd be happy to fix whatever peter wants.

Cheers, Tim

On 24 Nov 2009, at 23:59, Peter Robinett wrote:

> I'd be happy to but I'd appreciate some advice and guidance.
> 
> Peter
> 
> On Nov 24, 2:26 pm, David Pollak 
> wrote:
>> I'm all for enhancing the flot stuff.
>> 
>> Do I see anyone raising their hand to own the changes?
>> 
>> On Tue, Nov 24, 2009 at 12:57 AM, Jeppe Nejsum Madsen 
>> wrote:
>> 
>> 
>> 
>>> Peter Robinett  writes:
>> 
 I've been working with lift-flot a lot recently and I'd like to share
 some thoughts and suggest some improvements. It's a very useful
 interface to a great Javascript plotting library, so consider these as
 small suggestions from a fan.
>> 
>>> I had some of the same concerns as you a while back. I ended up writing
>>> a wrapper to the JqPlot library instead since it better matched the
>>> features we needed.
>> 
>>> But the inner workings are about the same, so maybe you can use some of
>>> the ideas. I'm mainly using category plots with name/value pairs.
>> 
>>> I have basic structure for a single series:
>> 
>>> class CategorySeries[T](val categories : List[T], val values :
>>> List[Double], val name : Option[String])
>> 
>>> And a complete dataset:
>> 
>>> class CategoryDataset[T](val series : List[CategorySeries[T]], val name:
>>> Option[String])
>> 
>>> I then defined several different plot types that "do the right thing"
>>> with respect to the dataset:
>> 
>>> class BarChart[T] (dataset: CategoryDataset[T])
>>> class StackedBarChart[T] (dataset: CategoryDataset[T])
>>> class PieChart[T] (dataset: CategoryDataset[T])
>> 
>>> etc
>> 
>>> I haven't made any partial updates so don't know how well this works
>>> here :-)
>> 
>>> /Jeppe
>> 
>>> --
>> 
>>> You received this message because you are subscribed to the Google Groups
>>> "Lift" group.
>>> To post to this group, send email to lift...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> liftweb+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/liftweb?hl=en.
>> 
>> --
>> Lift, the simply functional web frameworkhttp://liftweb.net
>> Beginning Scalahttp://www.apress.com/book/view/1430219890
>> Follow me:http://twitter.com/dpp
>> Surf the harmonics
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Improving lift-flot

2009-11-24 Thread Peter Robinett
I'd be happy to but I'd appreciate some advice and guidance.

Peter

On Nov 24, 2:26 pm, David Pollak 
wrote:
> I'm all for enhancing the flot stuff.
>
> Do I see anyone raising their hand to own the changes?
>
> On Tue, Nov 24, 2009 at 12:57 AM, Jeppe Nejsum Madsen wrote:
>
>
>
> > Peter Robinett  writes:
>
> > > I've been working with lift-flot a lot recently and I'd like to share
> > > some thoughts and suggest some improvements. It's a very useful
> > > interface to a great Javascript plotting library, so consider these as
> > > small suggestions from a fan.
>
> > I had some of the same concerns as you a while back. I ended up writing
> > a wrapper to the JqPlot library instead since it better matched the
> > features we needed.
>
> > But the inner workings are about the same, so maybe you can use some of
> > the ideas. I'm mainly using category plots with name/value pairs.
>
> > I have basic structure for a single series:
>
> > class CategorySeries[T](val categories : List[T], val values :
> > List[Double], val name : Option[String])
>
> > And a complete dataset:
>
> > class CategoryDataset[T](val series : List[CategorySeries[T]], val name:
> > Option[String])
>
> > I then defined several different plot types that "do the right thing"
> > with respect to the dataset:
>
> > class BarChart[T] (dataset: CategoryDataset[T])
> > class StackedBarChart[T] (dataset: CategoryDataset[T])
> > class PieChart[T] (dataset: CategoryDataset[T])
>
> > etc
>
> > I haven't made any partial updates so don't know how well this works
> > here :-)
>
> > /Jeppe
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.




[Lift] Re: Improving lift-flot

2009-11-24 Thread Peter Robinett
Thanks, Jeppe, it's interesting to see how you've approached it.

Peter

On Nov 24, 12:57 am, Jeppe Nejsum Madsen  wrote:
> Peter Robinett  writes:
> > I've been working with lift-flot a lot recently and I'd like to share
> > some thoughts and suggest some improvements. It's a very useful
> > interface to a great Javascript plotting library, so consider these as
> > small suggestions from a fan.
>
> I had some of the same concerns as you a while back. I ended up writing
> a wrapper to the JqPlot library instead since it better matched the
> features we needed.
>
> But the inner workings are about the same, so maybe you can use some of
> the ideas. I'm mainly using category plots with name/value pairs.
>
> I have basic structure for a single series:
>
> class CategorySeries[T](val categories : List[T], val values :
> List[Double], val name : Option[String])
>
> And a complete dataset:
>
> class CategoryDataset[T](val series : List[CategorySeries[T]], val name:
> Option[String])
>
> I then defined several different plot types that "do the right thing"
> with respect to the dataset:
>
> class BarChart[T] (dataset: CategoryDataset[T])
> class StackedBarChart[T] (dataset: CategoryDataset[T])
> class PieChart[T] (dataset: CategoryDataset[T])
>
> etc
>
> I haven't made any partial updates so don't know how well this works
> here :-)
>
> /Jeppe

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.