Home forums Using CanvasJS edit stripline and add colors to multiple occurences on the same coordinates

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 2 weeks, 6 days ago.

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

    hafalzan
    Member

    hi guys!

    i have 3 questions:
    please evaluate the following code to understand my first 2 questions:

    https://jsfiddle.net/2dcx3hej/17/

    question 1: how can I drag and drop stripline boarders, meaning: I set them with the mouse, and then I want to move the boarders to the left/right
    question 2: how can I delete a marked stripline?

    question 3: please refer to the following image: https://imgur.com/XI0P34N
    I am actually plotting a scatter graph with a lot of data: can I somehow assign a color to a point depending on the number of occurences? Example: if I have 10 points which are equal (same x- & y-axis value), then plot the point yellow, if I have 20 points which are equal, plot the point blue etc.

    thank you very much in advance
    regards
    eran

    #23271

    Vishwas R
    Keymaster

    Eran,

    question 2: how can I delete a marked stripline?

    You can remove selected stripLine dynamically using remove method. Please take a look at this JSFiddle where stripLines are deleted dynamically on double clicking them.

    question 3: please refer to the following image: https://imgur.com/XI0P34N
    I am actually plotting a scatter graph with a lot of data: can I somehow assign a color to a point depending on the number of occurences? Example: if I have 10 points which are equal (same x- & y-axis value), then plot the point yellow, if I have 20 points which are equal, plot the point blue etc.

    You can set color to the dataPoint based on number of occurrences. Please refer this stackoverflow thread for more info on finding the number of occurrences of an element in an array of objects.

    question 1: how can I drag and drop stripline boarders, meaning: I set them with the mouse, and then I want to move the boarders to the left/right

    We are looking into this and will get back to you at the earliest.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.