Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Format the y axis of a CCC bar chart.

  1. #1
    Join Date
    May 2017
    Posts
    11

    Default Format the y axis of a CCC bar chart.

    Name:  tela.jpg
Views: 113
Size:  18.0 KB

    Hello, i'm having some trouble with number formatation, i can't fix this. i want to show the numbers with only one single decimal house. how can i do this?
    i've already tryed to fix this writing a function in post fetch

    Code:
    function f(data){
        
        this.chartDefinition.format = {
            number: {
                mask: "#.0", 
                style: {
                decimal: ".",
                group: ","
                }
            }
        };
        
        return data;
    }
    but it didn't work, can you guys help me?
    Last edited by wagneralbjr; 07-24-2017 at 08: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.