Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: How to define chartoptions of pentaho analysis

  1. #1

    Question How to define chartoptions of pentaho analysis

    Hello,

    in the analysis_customers.xaction in the pentaho sample solution it is possible to change charttype and chartlocation of the steel-wheels analysis samples setting the following tags in the component-definition of the action-definition:

    <charttype>9</charttype>
    <chartlocation>top</chartlocation>

    But how to set other chart options like chartheight and chartwidth?

    I modified analysis_customers.xaction in order to meet my requrements (see below), but my changes have no effect. The ChartCompoent in Pivot.jsp still uses ChartWidth 500 and ChartHeight 300!

    Code:
    <outputs> 
        <model type="string"/>  
        <connection type="string"/>  
        <mdx type="string"/>  
        <options type="list"/>  
        <title type="string"/>  
        <url type="string"> 
          <destinations> 
            <response>redirect</response> 
          </destinations> 
        </url>  
        <charttype type="string"/> 
        <chartwidth type="string"/>
        <chartheight type="string"/> 
        <chartlocation type="string"/> 
      </outputs>
    
      <resources/>
      
      <actions> 
        <action-definition> 
          <component-name>PivotViewComponent</component-name>
          <action-type>Pivot View</action-type>
          <action-inputs> 
            <mode type="string"/> 
          </action-inputs>
          <action-outputs> 
            <model type="string"/>  
            <connection type="string"/>  
            <mdx type="string"/>  
            <options type="list"/>  
            <title type="string"/>  
            <url type="string"/>  
            <charttype type="string"/> 
          <chartwidth type="string"/> 
          <chartheight type="string"/> 
            <chartlocation type="string"/> 
          </action-outputs>
          <component-definition> 
            <title>Drill Down to Pivot Table</title>  
            <viewer>Pivot</viewer>  
            <charttype>8</charttype> 
          <chartwidth>900</chartwidth>
          <chartheight>700</chartheight>   
            <chartlocation>right</chartlocation>  
            <model>samples/steel-wheels/analysis/steelwheels.mondrian.xml</model>
    I would appreciate any hints and suggesions!

    Cheers
    noris
    Last edited by noris; 06-19-2007 at 04:37 AM.

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.