ZingChart: How do you display time-series data on charts by the week?

You can display time series data by setting your scale values to a timestamp in Unix time (in milliseconds) and adding the transform  object to the scale. Check out this demo that sets the step size to be the number of milliseconds in a week.

scaleX: {
    step: 'week', // OR a Number (604800000) milliseconds in a week
    transform: {
        type: 'date',
        all: '%M %d,
%Y',
    }
}

Example: https://demos.zingchart.com/view/JVF22JLG 

Documentation

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us