jQWidgets Forums

jQuery UI Widgets Forums Chart How to start Y Line at 0

This topic contains 3 replies, has 2 voices, and was last updated by  arthipesa 10 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • How to start Y Line at 0 #61128

    arthipesa
    Participant

    I am trying to recreate this chart I have, Original Chart
    but I ran to trouble of Y line that JQWidgets put, it set at the minimum value instead of at 0, see the result Made with JQWidgets.

    Now, how can I set the Y line to 0 ? as we know in original Cartesian coordinate plane? http://en.wikipedia.org/wiki/Cartesian_coordinate_system

    How to start Y Line at 0 #61131

    Dimitar
    Participant

    Hello arthipesa,

    You can set the y-axis minimum value to 0 through the valueAxis minValue property, i.e.:

    valueAxis:
    {
        unitInterval: 5,
        displayValueAxis: true,
        description: 'Temperature [C]',
        axisSize: 'auto',
        tickMarksColor: '#888888',
        minValue: 0
    },

    However, in jqxChart, series cannot be plotted under the y-axis minimum value and the part of the line with negative data points would be clipped.

    Best Regards,
    Dimitar

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

    How to start Y Line at 0 #61283

    arthipesa
    Participant

    Hmm, I see, well, if that’s the case then how about to loose the horizontal lines? what’s the parameter to set in order to show only horizontal line in the X line at minimum value instead of having horizontal lines each Y values?

    Thank you in advance.

    ___________________
    Done is Better than Perfect

    How to start Y Line at 0 #61288

    arthipesa
    Participant

    And I have to answer that very last question of mine myself, hehe,
    I found how to remove/hide the row lines or as in documentation said a horizontal line by

    valueAxis: 
    { 
        showGridLines: false
    }

    Best regards,
    ___________________
    Done is Better than Perfect

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

You must be logged in to reply to this topic.