Dynamic Y-axis scale

2»

Comments

  • Thanks Clement Wong. I will give it a try.


  • edited March 25

    Hey,
    I am trying to use this script
    beforeRendering: function(options, chart)

    {

    if (chart.getYAxisMax() < 1000000)

    options.yAxis[0].labels.formatter = function() {
    
            return (this.value / 10000) + ' K';
    
    };
    

    else if (chart.getYAxisMax() > 1000000)

    options.yAxis[0].labels.formatter = function() {
    
            return (this.value / 1000000) + ' M';
    
    };
    

    },

    to modify a scale on a x - Axis to Min 1000000 and max 10,000,000 and also to show 000,000 as M
    but it wont work for me, could anyone help for the script please ?
    eclipse.org/birt/2005/design" version="3.2.23"
    OpenText Analytics Designer
    Version: 24.4.0

Sign In or Register to comment.