jQuery UI Widgets Forums Chart About axis range and labels

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • About axis range and labels #54322

    _Mark_
    Participant

    Hello,
    I’m evaluating the jxqChart and I can’t find few answers in the docs. I’d like to:

    1) hide labels on the x-axis

    2) auto-scale the axes, I mean it should select the appropriate range based upon the contents

    Thank you in advance!
    Mark

    About axis range and labels #54330

    Dimitar
    Participant

    Hello Mark,

    1) To hide the category (x) axis labels you should set the formatFunction callback function to return an empty string:

    categoryAxis: {
        dataField: '',
        description: '',
        showGridLines: true,
        showTickMarks: true,
        formatFunction: function (value) {
            return "";
        }
    }

    2) You can only auto-scale the value (y) axis by not setting the valueAxis properties minValue and maxValue (as in the demo Column Series).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.