Home > Data Integration (Kettle), How To > Simple Chart from CSV File

Simple Chart from CSV File

There was some requests on the Pentaho Data Integration forums for an example of how to generate a simple chart from a CSV file.

Sometimes people get so lost in the technology, that it’s tough to just do something pretty simple.  I totally get that.  Pentaho still has plenty of room for improvement on the usability, especially for people coming to the platform for the first time.

Well, here tis.

Unzip examplecsv.zip to pentaho-demo/pentaho-solutions/samples/etl/ in the sample server.

Basically, the idea is to turn a csv file (example.csv):

Year,PresentsNickReceived,PresentsRequested
2003,7,4
2004,9,8
2005,8,9
2006,11,8

into this chart

The confusing part, I’m guessing from the thread, was how data gets from KETTLE to PENTAHO.

Not hard at all actually.

Pentaho initiates (ie, calls Kettles API) the Kettle transform and then “slurps” in memory records from a specified step.  It’s the UNIX equivalent of the “tee” utility where you’re just watching data arriving at a certain place.  In this example, I’ve made it even more explicit by naming the “dummy” step “for_pentaho” so that it’s clear the step that Pentaho is “slurping” the data from.

After that, it’s just a matter of building a chart like any other in the platform.

  1. December 18, 2006 at 8:32 am | #1

    Very nice and clear example.

  2. Bafar
    January 24, 2007 at 5:07 pm | #2

    Thanks for another nice example.
    A great start to play around with the posibilities of the design studio.

  3. rajesh
    November 2, 2007 at 4:33 am | #3

    I’m new to ETL and asked by the guys to learn this tool and am now did a few exmpls in pentaho.. created transformation in spoon .. not yet used the pan chef and kitchen. this is a good example.

    rajesh
    Trivandrum
    INDIA

  4. November 2, 2007 at 4:34 am | #4

    I’m new to ETL and asked by the guys to learn this tool and am now did a few exmpls in pentaho.. created transformation in spoon .. not yet used the pan chef and kitchen.

    rajesh
    Trivandrum
    INDIA

  5. Pallavi
    February 6, 2008 at 4:53 pm | #5

    Is this example supposed to work on 1.6 GA version of BI Suite too? I do get a successful status on top and the field names but there is no chart. Am I missing something?

    Thanks

  6. March 26, 2008 at 2:53 pm | #6

    Thanks for that

  7. May 11, 2008 at 11:31 pm | #7

    Very good and useful site abt open source users in BI.Really helpful and guiding to new users.
    Thnks
    Pravin……!

  8. May 12, 2008 at 10:38 pm | #8

    The simplest ideas can often be the best.

  9. May 25, 2008 at 10:50 pm | #9

    Nice article Nicholas. Thanks for sharing.

  10. May 27, 2008 at 5:08 pm | #10

    I guess this is one of those things that it would be cool to do, but us lazy folk just go out and buy excel lol

  11. June 9, 2008 at 3:21 pm | #11

    Thanks a lot for this useful tip for drawing charts using from data in Kettle.

  12. February 21, 2009 at 2:10 pm | #12

    Great Post, this stuff really is the next wave of the future.

  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>