US and Worldwide: +1 (866) 660-7555
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: logarithmic scale in charts

  1. #1
    Join Date
    Nov 2010
    Posts
    29

    Default logarithmic scale in charts

    I am trying to set up a chart, which would have several categories of very different magnitudes. For example, imagine a chart of two trends: total number of some kind of events in millions and a number of events with errors in, say, hundreds or thousands. Errors will be invisible without logarithmic Y scale. So I want Y-axis to go 1, 10, 100, 1000, 10000 etc. instead of 1, 2, 3, 4... One possible way is to do it on a level of DB query: "select category, log10(amount) from ...", but it changes the labels on the Y-axis to logarithms. I want labels to stay the same: original number of events.

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

    Default

    I think that can be implemented with CCC ..
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3
    Join Date
    Nov 2010
    Posts
    29

    Default

    Quote Originally Posted by pmalves View Post
    I think that can be implemented with CCC ..
    Could you elaborate a little?

  4. #4
    Join Date
    Nov 2010
    Posts
    29

    Default

    Quote Originally Posted by pmalves View Post
    I think that can be implemented with CCC ..
    Could you at least decipher what does CCC mean? Thanks.

  5. #5
    Join Date
    Nov 2010
    Posts
    29

    Default

    That was super helpful so far

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

    Default

    Right... nothing a quick view on this forums couldn't answer, but anyway:

    http://pedroalves-bi.blogspot.com/20...omponents.html

    http://www.webdetails.pt/ccc/pvcTest.html
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  7. #7
    Join Date
    Nov 2010
    Posts
    29

    Default

    Any documentation to get started? I am running biserver-ce-3.6.0-stable now and use .xaction with SecureFilterComponent for html forms with parameters like date ranges and such, then feed those to SQLLookupRule and then to ChartComponent, which has .xml file with properties. Do I need to upgrade to 3.7.0? Do I just change ChartComponent to some other component with different properties in .xml? Or something else? Are there examples in 3.7.0 similar to those for ChartComponent and Flash charts in Steel Wheels solution example? Thanks.

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

    Default

    You can try downloading and installing CDE 1.0-RC3, it has an example of a dashboard that uses CCC charts
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  9. #9
    Join Date
    Nov 2010
    Posts
    29

    Default

    I installed CDE 1.0-RC3 and played with dashboard editor. Very nice. What I could not do so far is to change X axis labels on a time series line chart so it would show every hour. By default it only shows 6 AM and 6 PM of each day.

    And how do I approach doing my log Y-axis scale? I did not notice such settings in the advanced properties of charts.

    Thanks.

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

    Default

    Quote Originally Posted by sandy.s View Post
    I installed CDE 1.0-RC3 and played with dashboard editor. Very nice. What I could not do so far is to change X axis labels on a time series line chart so it would show every hour. By default it only shows 6 AM and 6 PM of each day.
    This is a bug in protovis - need to fix it...

    Quote Originally Posted by sandy.s View Post

    And how do I approach doing my log Y-axis scale? I did not notice such settings in the advanced properties of charts.

    Thanks.
    I need to implement it yet, but you could try to go to the source and chance pv.Scale.linear with pv.Scale.log


    -pedro
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

Posting Permissions

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