jQuery UI Widgets Forums Chart Unit, Tick, Grid Intervals

This topic contains 2 replies, has 2 voices, and was last updated by  johnmarta 6 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Unit, Tick, Grid Intervals #50185

    johnmarta
    Participant

    Having issues getting the intervals to work, wondering what I’m doing wrong. With the attached code, I expected categoryAxis to show every-other tick and gridline. What I’m getting isn’t close. Same with valueAxis. Similar problem when I set categoryAxis unitInterval, it doesn’t behave as I expect. Thanks for any help here…

    here is the jqx chart settings block:
    {
    “title”:”KMRY GRAPH”,
    “showLegend”: “true”,
    “description”: “”,
    “enableAnimations”: “true”,
    “colorScheme”: “scheme01”,
    “categoryAxis”:
    {
    “dataField”: “Time”,
    “showTickMarks”: “true”,
    “tickMarksInterval”: “2”,
    “tickMarksColor”: “#FFFF00”,
    “gridLinesInterval”: “2”,
    “gridLinesColor”: “#00FF00”,
    “showGridLines”: “true”
    },
    “seriesGroups”:[
    {
    “type”:”line”,
    “valueAxis”:
    {
    “minValue”:”-20″,
    “maxValue”:”40″,
    “unitInterval”:”5″,
    “description”:”Temp Dew “,
    “displayValueAxis”:”true”,
    “displayValueAxis”:”auto”,
    “tickMarksColor”:”#888888″
    },
    “series”:[
    {
    “dataField”:”Temp”,
    “displayText”:”Temp”,
    “color”:”#CA5422″
    },
    {
    “dataField”:”Dew”,
    “displayText”:”Dew”,
    “color”:”#5454E7″
    }]
    }]
    }

    here is the “source” data:
    [
    {“Time”:”11:54″,”Temp”:”12.0″,”Dew”:”9.0″},
    {“Time”:”12:54″,”Temp”:”12.0″,”Dew”:”8.0″},
    {“Time”:”13:54″,”Temp”:”12.0″,”Dew”:”8.0″},
    {“Time”:”14:54″,”Temp”:”13.0″,”Dew”:”8.0″},
    {“Time”:”15:54″,”Temp”:”12.0″,”Dew”:”10.0″},
    {“Time”:”16:54″,”Temp”:”12.0″,”Dew”:”11.0″},
    {“Time”:”17:54″,”Temp”:”13.0″,”Dew”:”11.0″},
    {“Time”:”18:35″,”Temp”:”13.0″,”Dew”:”11.0″},
    {“Time”:”18:54″,”Temp”:”13.0″,”Dew”:”12.0″},
    {“Time”:”19:07″,”Temp”:”13.0″,”Dew”:”12.0″}
    ]
    Chart

    Unit, Tick, Grid Intervals #50196

    Dimitar
    Participant

    Hello johnmarta,

    Boolean and numeric values (true, false, 2, 40, etc.) must not be enclosed in quotes – “true” is not equal to true and “2” is not equal to 2. Other property names also do not have be enclosed in quotes (see the jqxChart demos).

    Leave quotes only for string values and your issue should be resolved.

    Best Regards,
    Dimitar

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

    Unit, Tick, Grid Intervals #50255

    johnmarta
    Participant

    Thanks, Dimitar –
    I knew it had to be something stupid that I missed – works great now. Appreciate the quick reply!

    john

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

You must be logged in to reply to this topic.