Home forums Using CanvasJS With stacked chart want yaxis to be label of first dataset

This topic contains 1 reply, has 2 voices, and was last updated by  Bivek Singh 1 week, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15321

    paultaylor
    Member

    With stacked chart want yaxis to be label of first dataset

    So in this jsfiddle Im just using stackedBar to allow multiple data points on one bar.
    Fore the 3rd bar the first data object has this label set to ‘Done’, the second data object has label set to to ‘Half Done’

    The problem is on the axis this bar is labelled ‘Half Done’ instead of ‘Done’

    I want it to be labelled ‘Done’, or even better have a textual label that was not ‘Half Done’ or ‘Done’, how do I do this ?

    I tried setting the values of “x” to the label value rather than a number but canvasjs didn’t seem to like that at all

    http://jsfiddle.net/x03241n3/4/

    #15331

    Bivek Singh
    Moderator

    @paultaylor,

    Labels take the values from last dataSeries. Please take a look at this jsFiddle.

    —-
    Bivek Singh,
    Team CanvasJS

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

You must be logged in to reply to this topic.