Home forums Chart Support Changing the Sort order of a Stacked Vertical Chart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32508

    I have a query that gets me data for the past three January’s. I am outputting a stacked bar vertical chart that comes out perfectly…. except I am stuck on the labeling of the X-Axis. If I use a date for the X axis value, then my x axis outputs a bunch of months between the three January’s. If I use a label for the Y axis, it comes out looking great (January 2018, January 2019, January 2020), exactly as I want it, but the order of the three months is reversed. I need it to show January 2020 first and January 2018 last.

    Any help would greatly be appreciated.

    #32509

    Here is the JSFiddle for it.

    https://jsfiddle.net/phayes0289/qv7ngbrt/6/

    #32521

    @phayes0289,

    Stacked Column Charts are plotted when multiple Column Charts with aligned x-values are plotted on same axis. Adding x-values to the dataPoints and reversing x-axis using reversed property should work fine in your case. Please take a look at this updated JSFiddle.

    ___________
    Indranil Deo
    Team CanvasJS

    #32522

    OMG… how did I miss that. That is abiout as simple as simple gets. THANK YOU!

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

You must be logged in to reply to this topic.