Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: TimeSeriesCollection Image Map

  1. #1
    Join Date
    Jul 2009
    Posts
    7

    Default TimeSeriesCollection Image Map

    Hi,

    I've got a Line Chart w/ the TImeSeriesCollection data-set working very nicely, however, I've found that the image map for the generated image is rather strange: where I would expect something like "2009-08-04 11:00, 24", I in fact get "0, 24"; the date portion of the hover-link is not displaying correctly.

    Any ideas?

    Cheers,
    Jimmy

  2. #2
    Join Date
    Jul 2009
    Posts
    7

    Default Clarification

    I guess what I'm REALLY asking is, is there a way to format the output of the generated image map? I can't seem to get it to recognize that the first value should be a date, and the second value should be a double.

    Cheers,
    Jimmy

  3. #3
    Join Date
    Jul 2009
    Posts
    7

    Smile Success!

    Ahah, I've got it: in the xaction chart attributes section you have to specify:

    <tooltip-x-format>[insert Java SimpleDateFormatter date format]</tooltip-x-format>

    Given that x is your domain (and is a timestamp).

    Hope this helps somebody out there.

    Cheers,
    Jimmy

  4. #4
    Join Date
    Jul 2009
    Posts
    7

    Default More Problems

    Argh, more problems!

    Now that I've figured out the tool-tip stuff, I've got to figure out how to fire a javascript action to update another chart from the clicked drill-point. I understand how to do this in theory, but right now there's some weird results. In my xaction file for the chart, I've specified the following attributes:

    <chart-attributes>
    ...
    <url-template>
    <![CDATA[javascript:graphClicked('{timestamp}', '{hostname}')]]>
    </url-template>
    <series-name>hostname</series-name>
    <paramName>timestamp</paramName>
    ...
    </chart-attributes>

    Now, this stuff almost works:

    When I place my mouse over the appropriate drill point, I get (for the url):

    javascript:graphClicked('index.html?series=0', '[correct hostname here]')

    The problem, as you can see, lies in the "index.html?series=0" portion; presumably, that part was supposed to be a timestamp; however it is not. Is this a bug w/ the chart component or am I doing something wrong?

    Any help would be MUCH appreciated.

    Cheers,
    Jimmy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.