Home forums Using CanvasJS Combining Line and Column data

This topic contains 2 replies, has 2 voices, and was last updated by  Indranil Deo 2 months, 3 weeks ago.

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

    RSidhu
    Member

    When combining line and column data in a single chart the columns are spaced to the integer axis values.
    http://jsfiddle.net/1zjbq8rh/

    My goal is to display the columns normally, but use a higher resolution for the line. For example, in the jsfiddle, remove these data points:
    { x: 0.25, y: 15.5 },
    { x: 0.5, y: 17 },
    { x: 0.75, y: 18.5 },
    to get the desired rendering of the columns.

    Is there a workaround to accomplish this?

    #15926

    RSidhu
    Member

    Here is the updated jsfiddle: http://jsfiddle.net/1zjbq8rh/1/

    #15929

    Indranil Deo
    Member

    @rsidhu,

    You can set the width of the dataPoint using dataPointWidth.

    Please take a look at this example.

    ____________
    Indranil Deo,
    Team CanvasJS

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

You must be logged in to reply to this topic.