Home forums Using CanvasJS Spline tension

This topic contains 5 replies, has 2 voices, and was last updated by  Shashi Ranjan 2 weeks, 1 day ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23829

    LoT10
    Member

    Hello,

    I’d like to change the way spline are curved (i want them less smoothed), but I didn’t find a parameter for that.

    Is it possible ?

    Thanks,

    #23843

    @laurentt10,

    We don’t have this feature as of now but we may consider this in future releases.

    __
    Shashi Ranjan
    Team CanvasJS

    #23904

    LoT10
    Member

    Hi,

    Is it something I can update by myself with the Single Developer License and source code provided ?

    Sometimes splines show “falses values” (over 33° here) : https://jsfiddle.net/mbz8pnxy/
    We are looking for something more like http://jsfiddle.net/9nuL2qhk/ (same datas, other chart engine)

    Thanks,

    #23907

    @laurentt10,

    Yes, it is possible to achieve the above requirement by editing the source code. Once you have purchased the license please let us know and we will help you out with editing the source code.

    __
    Shashi Ranjan
    Team CanvasJS

    #23950

    LoT10
    Member

    Hello,

    We have a licence now, and the source code.

    I tried to change spline defaultTension from 2 to 4, it’s better but not really perfect.

    defaultTension 2 :

    defaultTension 4 :

    We are showing percentages so the curve must not exceed the value of 100 …

    Having something good is probably more difficult than just changing defaultTension value.
    Any tips ?

    Thanks,

    #23953

    @laurentt10,

    You can try editing the function renderBezier() in the source code with few combinations. We are also trying it at our end, once we get an appropriate solution we will get back to you.

    __
    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.