This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GuiComposer LineGraph ignores axis minimum and maximum values

When using the LineGraph widget in GuiComposer the axis maximum and minimum values are not limiting and seem to be ignored. These values appear to be used only when the graph is first drawn and then overridden as soon as data is loaded. While it is nice to have graphs with auto-ranging axes for exploration of data, it is necessary to be able to produce consistent graphs for production use.

I would also expect that by providing maximum and minimum values for the axes that there would no longer be the addition of space outside the range of the values in the data array (e.g. if there are 40 data points in an array the graph would not have the 10 point padding to the right and left of the graphed data as is currently done).

  • Hi Donald,

    The options are not exposed in the GUI Composer designer, and here are the workarounds.

    Add either one of these to the html source markup for the LineGraph, these two options don't work well together.

    To prevent auto scaling, you need to add resetAxes="true".
    To remove padding, you need to add data-dojo-props="axes:{yaxis:{pad:0}, xaxis:{pad:0}}".

    I also filed an enhancement request, SDSCM00046808.

    Regards,
    Patrick 

  • Patrick,

    I added this to the HTML file, and it seems to get rid of the padding.

    Patrick Chuong said:

    To remove padding, you need to add data-dojo-props="axes:{yaxis:{pad:0}, xaxis:{pad:0}}".

    I know you said the two lines of codes don't work well together, but I tried it anyways and the resetAxes doesn't work at all. Is there a way to make the range static?

    Sincerely,

    Jubin

  • Jubin Shah said:

    I know you said the two lines of codes don't work well together, but I tried it anyways and the resetAxes doesn't work at all. Is there a way to make the range static?

    You need to wait for the CQ at the top of this thread... We are working on it right now, hoping to get it fixed for CCS5.5

    Regards,
    Patrick