Home forums Using CanvasJS Stacked Area X Axis with differing x-axis values

This topic contains 2 replies, has 1 voice, and was last updated by  davehope 1 year, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7644

    davehope
    Participant

    I need to plot temperature readings against a temperature schedule, the schedule specifies 24 values one for every hour of the day. Temperature is read every 10 minutes.

    Example: http://jsfiddle.net/ufmvfgon/1/

    Either data set will graph fine on its own, but not together. Ideally the X axis should show the points from the “schedule” data set only.

    Any suggestions?

    #7645

    davehope
    Participant

    Just noticed I had misread how date() works, it using 0=Jan,1=Feb and so on. I’ve made that adjustment but the problem remains:

    http://jsfiddle.net/ufmvfgon/3/

    #7646

    davehope
    Participant

    Problem solved – Was combining traditional unix time stamps (seconds) with javascript timestamps (miliseconds). Sorting that out and switching to an area+spline solved the problem.

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

You must be logged in to reply to this topic.