Home Forums Report Bugs AxisY2 Maximum broken in 1.8

AxisY2 Maximum broken in 1.8

Viewing 13 posts - 1 through 13 (of 13 total)
  • #9910

    After upgrading from 1.7 to 1.8 my chart that using a secondary Y axis is no longer able to find the maximum value:

    axisY2: {
       labelFormatter: function (e) {
           var maxElement = e.chart.axisY2.maximum;
           return FormatDataSize(maxElement, e.value);
       }
    },

    The firstproblem is e.chart.axisY2 is no longer valid… so something has changed…

    #9917

    It should instead be e.chart.options.axisY2.maximum

    #9923

    Uhm… I will try that. I rolled back to 1.7 and its working with e.chart.axisY2.maximum.

    #10061

    This does not work. That option always returned “undefined”!

    #10062

    You can see from the console.log output of e.chart under the labelformatter:

    No max

    #10064

    Jacob,
    Its ‘e.chart.options.axisY2.maximum’. Kindly check the screenshot you have added, it has field called options.

    #10068

    Yes you are right BUT under axisY2 it is missing the “maximum” value.

    So: e.chart.options.axisY2.maximum is ALWAYS “undefined”. This started with 1.8

    #10073

    Hi Jacob,

    Thanks for bringing this to our notice. In earlier version of CanvasJS user had access to internal methods and variables which has been kept private from version 1.8. But in the future versions, we are planning to give user structured internally calculated values such as minimum and maximum. As of now, if you know the maximum value suiting to your requirement, you can set it for axisY2 and after that e.chart.options.axisY2.maximum will be available.

    #10076

    Yeah I don’t know the maximum though…. its completely different based on the system the product is running on and the maximum is different each day. I’m using it to display the data in MB, GB, or TB which is why I need to know what the maximum is.

    For now I just hard coded it to use GB format but thats not really ideal.

    #10109

    When could we expect this back in the future versions?

    #10152

    Sorry, Jacob

    We are considering this feature for future versions but we don’t have exact timeline yet.

    #10370

    Ah that sucks. Not cool paid $400 then a feature I used was ripped out :-(

    #10382

    Hi Jacob,

    Sorry for the inconvenience. We try our best to maintain backward compatibility while releasing new versions. But in this case the API you used was an undocumented API and hence it has changed.

    Just for this version we can give you a separate build by making the previous feature available. Please write an email to info@canvasjs.com and we’ll send you a new build.

    Going forward please try to use only the documented APIs. Undocumented APIs would be at your own risk… :-)


    Sunil Urs

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.