US and Worldwide: +1 (866) 660-7555
Results 1 to 6 of 6

Thread: CDF dashboards - how can we migrate classic chart components to CCC?

  1. #1

    Default CDF dashboards - how can we migrate classic chart components to CCC?

    Hi to all!

    Since CCC charts are now available in CDF dashboards, I'm going to try to migrate/convert old style charts (JFreeCharts) to new CCC components.
    So, the point is: how can we define a CCC component in a CDF dashboard.

    My environment consists of a tomcat 6 manual deployment of biserver-3.8 on windows xp machine.
    I download source code of CDF and CDA from webdetails' github, both compiled successfully.

    CCC charts are much more elegant and versatile than JFreeCharts and it would be an important style and content presentation plus for my dashboards!

    Any suggestions are welcome...

    Bye!

    Alessandro

  2. #2
    Join Date
    Jul 2007
    Posts
    2,172

    Default

    One obvious point of reference is ccc.webddetails.org , lots of documentation there.

    But since you're starting with it, whynot go all in and use cde too? ;-)
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3

    Default

    Hi Pedro!

    Thank very much for your suggestions!
    I agree with you about using CDE instead of writing thousands lines of code in a HTML file (old style CDF dashboards).
    But unfortunately, at the moment my boss/manager does not want to upgrade our "dashboards park" to CDE.
    I'll try to convince him!

    Many many thanks!!

    Cheers!

    Alessandro

  4. #4

    Post

    Hi,

    I'm back with new questions!

    I followed Pedro's suggestions and I took a look at ccc.webdetails.org.
    I read the docs and played a bit with sample charts (http://ccc.webdetails.org/?q=content/charts-barchart).

    What I understand from that example is that we can use setData() to set a resultset (and metadata) which will be use to build thew chart.
    In that example, relational_03 is the resultset/metadata used to build and render the bar chart.

    Looking at the source code of the page I found the definition of setData() method, which is:

    Code:
    /**      * Method to set the data to the chart. Expected object is the same as what 
         * comes from the CDA: {metadata: [], resultset: []} 
         */ 
     
        setData: function(data, options){ 
            this.setResultset(data.resultset); 
            this.setMetadata(data.metadata); 
     
            $.extend(this.options,options); 
        },
    Now my question is: since relational_03 is a variabile of the same datatype returned from CDA, how can we call a CDA query from within a CDF dashboard?
    Do we have to call doQuery with a httprequest?

    Any suggestions, explanation, or whatever are welcome!

    Bye,
    Alessandro

  5. #5

    Default

    Try to use CTOOLS installer which will install the CDF/CCC/CDA sample Pedro have created right click on it and CDE will open the whole source. Review the Layout Components and Data source tabs $ you will get most of your answers there.
    These links might be useful they contains sample too make sure you can download and run them in your further exploration.....
    http://type-exit.org/adventures-with...ards-with-cde/
    http://codeissue.com/articles/a04e87...c-using-cygwin
    http://codeissue.com/articles/a04ec1...tli-select-and
    If you are able to run and understand the sample then going details in the code will be useful just my 2 cents.
    Last edited by bidev; 12-02-2011 at 10:37 AM. Reason: CTOOLS

  6. #6

    Default

    Hi bidev!

    Thanks a lot for your suggestions!!
    I'll give it a try asap.

    Cheers!
    Alessandro

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •