Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Changing color dial chart

  1. #1

    Default Changing color dial chart

    hello guys, I want to change the color of a dial chart,

    I edit the file MetaLayerChart.js.

    I change the color values but does not change color.

    sorry for my English

    This is the file:

    dialChartDefinition : {
    width: 900,
    height: 400,
    chartType: "DialChart",
    queryType: 'mdx',
    is3d: 'true',
    jndi: "datamart",
    title: "Check ...",
    catalog: "solution:/Analisys/sample4.xml",
    colors: ["#FF4500","#FFFF00","#32CD32"],
    intervals: [0,2000000,5000000],
    includeLegend: true,

    query: function(){

    var query = ....;

    return query;
    }
    }

    How can I change color?

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

    Default

    Check the docs. iirc, for that interval specification you need 4 colors or, as an alternative remove the 0 from the interval spec
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3

    Default

    Quote Originally Posted by pmalves View Post
    Check the docs. iirc, for that interval specification you need 4 colors or, as an alternative remove the 0 from the interval spec

    i've changed:

    dialChartDefinition : {
    width: 900,
    height: 400,
    chartType: "DialChart",
    queryType: 'mdx',
    is3d: 'true',
    jndi: "datamart",
    title: "Check ...",
    catalog: "solution:/Analisys/sample4.xml",
    colors: ["#FF4500","#FFFF00","#32CD32", "#40E0D0"],
    intervals: [0,2000000,5000000],
    includeLegend: true,

    query: function(){

    var ...

    return query;
    }
    }

    Does not work

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.